Fix the suppress comment regex for react_native

Reviewed By: davidaurelio

Differential Revision: D4435640

fbshipit-source-id: c680aee6931979859f04c0dca47037ba6f6cba73
This commit is contained in:
Gabe Levi 2017-01-19 10:24:12 -08:00 committed by Facebook Github Bot
parent 78df7bd070
commit ec6d380a7a
3 changed files with 15 additions and 14 deletions

View File

@ -59,9 +59,9 @@ function compactMapping(mapping: BabelRawMapping): RawMapping {
}
if (typeof name !== 'string') {
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during
* the deployment of v0.38.0. To see the error, remove this comment and run
* flow */
/* $FlowFixMe(>=0.38.0 site=react_native_fb,react_native_oss) - Flow error
* detected during the deployment of v0.38.0. To see the error, remove this
* comment and run flow */
return ([line, column, original.line, original.column]: SourceMapping);
}
@ -80,13 +80,13 @@ function addMappingsForFile(generator, mappings, module, carryOver) {
mapping[0] + carryOver,
// lines start at 1, columns start at 0
mapping[0] === 1 && mapping[1] + columnOffset || mapping[1],
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during
* the deployment of v0.38.0. To see the error, remove this comment and
* run flow */
/* $FlowFixMe(>=0.38.0 site=react_native_fb,react_native_oss) - Flow error
* detected during the deployment of v0.38.0. To see the error, remove
* this comment and run flow */
mapping[2],
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during
* the deployment of v0.38.0. To see the error, remove this comment and
* run flow */
/* $FlowFixMe(>=0.38.0 site=react_native_fb,react_native_oss) - Flow error
* detected during the deployment of v0.38.0. To see the error, remove
* this comment and run flow */
mapping[3],
//$FlowIssue #15417846
mapping[4],

View File

@ -71,8 +71,9 @@ function optimize(transformed, file, originalCode, options): TransformResult {
}
function optimizeCode(code, map, filename, inliningOptions) {
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during the
* deployment of v0.38.0. To see the error, remove this comment and run flow
/* $FlowFixMe(>=0.38.0 site=react_native_fb,react_native_oss) - Flow error
* detected during the deployment of v0.38.0. To see the error, remove this
* comment and run flow
*/
return babel.transform(code, {
plugins: [

View File

@ -161,9 +161,9 @@ class Cache {
const ret = (Object.create(null): Record);
ret.metadata = record.metadata;
ret.data = Object.create(null);
/* $FlowFixMe(>=0.36.0 site=react_native_fb) Flow error detected
* during the deploy of Flow v0.36.0. To see the error, remove this
* comment and run Flow */
/* $FlowFixMe(>=0.36.0 site=react_native_fb,react_native_oss) Flow
* error detected during the deploy of Flow v0.36.0. To see the
* error, remove this comment and run Flow */
fieldNames.forEach((field, index) =>
ret.data[field] = ref[index]
);