Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f985e0
commit 11f1fc9
Showing
22 changed files
with
1,914 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...res/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects3/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"sourceType": "module", | ||
"plugins": ["jsx", "flow"], | ||
"throws": "Explicit inexact syntax must appear at the end of an inexact object (4:2)" | ||
"plugins": ["jsx", "flow"] | ||
} |
185 changes: 185 additions & 0 deletions
185
...ures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects3/output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
{ | ||
"type": "File", | ||
"start": 0, | ||
"end": 49, | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 0 | ||
}, | ||
"end": { | ||
"line": 5, | ||
"column": 1 | ||
} | ||
}, | ||
"errors": [ | ||
"SyntaxError: Explicit inexact syntax cannot appear in class or interface definitions (3:2)", | ||
"SyntaxError: Explicit inexact syntax must appear at the end of an inexact object (3:2)" | ||
], | ||
"program": { | ||
"type": "Program", | ||
"start": 0, | ||
"end": 49, | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 0 | ||
}, | ||
"end": { | ||
"line": 5, | ||
"column": 1 | ||
} | ||
}, | ||
"sourceType": "module", | ||
"interpreter": null, | ||
"body": [ | ||
{ | ||
"type": "DeclareClass", | ||
"start": 8, | ||
"end": 49, | ||
"loc": { | ||
"start": { | ||
"line": 2, | ||
"column": 0 | ||
}, | ||
"end": { | ||
"line": 5, | ||
"column": 1 | ||
} | ||
}, | ||
"id": { | ||
"type": "Identifier", | ||
"start": 22, | ||
"end": 23, | ||
"loc": { | ||
"start": { | ||
"line": 2, | ||
"column": 14 | ||
}, | ||
"end": { | ||
"line": 2, | ||
"column": 15 | ||
}, | ||
"identifierName": "C" | ||
}, | ||
"name": "C" | ||
}, | ||
"typeParameters": null, | ||
"extends": [], | ||
"implements": [], | ||
"mixins": [], | ||
"body": { | ||
"type": "ObjectTypeAnnotation", | ||
"start": 24, | ||
"end": 49, | ||
"loc": { | ||
"start": { | ||
"line": 2, | ||
"column": 16 | ||
}, | ||
"end": { | ||
"line": 5, | ||
"column": 1 | ||
} | ||
}, | ||
"callProperties": [], | ||
"properties": [ | ||
{ | ||
"type": "ObjectTypeProperty", | ||
"start": 35, | ||
"end": 46, | ||
"loc": { | ||
"start": { | ||
"line": 4, | ||
"column": 2 | ||
}, | ||
"end": { | ||
"line": 4, | ||
"column": 13 | ||
} | ||
}, | ||
"key": { | ||
"type": "Identifier", | ||
"start": 35, | ||
"end": 38, | ||
"loc": { | ||
"start": { | ||
"line": 4, | ||
"column": 2 | ||
}, | ||
"end": { | ||
"line": 4, | ||
"column": 5 | ||
}, | ||
"identifierName": "foo" | ||
}, | ||
"name": "foo" | ||
}, | ||
"static": false, | ||
"proto": false, | ||
"kind": "init", | ||
"method": false, | ||
"value": { | ||
"type": "NumberTypeAnnotation", | ||
"start": 40, | ||
"end": 46, | ||
"loc": { | ||
"start": { | ||
"line": 4, | ||
"column": 7 | ||
}, | ||
"end": { | ||
"line": 4, | ||
"column": 13 | ||
} | ||
} | ||
}, | ||
"variance": null, | ||
"optional": false | ||
} | ||
], | ||
"indexers": [], | ||
"internalSlots": [], | ||
"exact": false | ||
}, | ||
"leadingComments": [ | ||
{ | ||
"type": "CommentLine", | ||
"value": "@flow", | ||
"start": 0, | ||
"end": 7, | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 0 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 7 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"directives": [] | ||
}, | ||
"comments": [ | ||
{ | ||
"type": "CommentLine", | ||
"value": "@flow", | ||
"start": 0, | ||
"end": 7, | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 0 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 7 | ||
} | ||
} | ||
} | ||
] | ||
} |
3 changes: 1 addition & 2 deletions
3
...res/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects4/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"sourceType": "module", | ||
"plugins": ["jsx", "flow"], | ||
"throws": "Explicit inexact syntax must appear at the end of an inexact object (5:2)" | ||
"plugins": ["jsx", "flow"] | ||
} |
Oops, something went wrong.