Fix predicate attachment to match flow parser (#428)
This commit is contained in:
committed by
Daniel Tschinder
parent
cbf4203237
commit
bdfa92464b
25
test/fixtures/flow/predicates/3/expected.json
vendored
25
test/fixtures/flow/predicates/3/expected.json
vendored
@@ -111,37 +111,22 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"returnType": {
|
||||
"type": "TypeAnnotation",
|
||||
"start": 22,
|
||||
"predicate": {
|
||||
"type": "InferredPredicate",
|
||||
"start": 24,
|
||||
"end": 31,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 22
|
||||
"column": 24
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 31
|
||||
}
|
||||
},
|
||||
"typeAnnotation": null,
|
||||
"predicate": {
|
||||
"type": "InferredPredicate",
|
||||
"start": 24,
|
||||
"end": 31,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 24
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 31
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"returnType": null,
|
||||
"body": {
|
||||
"type": "BlockStatement",
|
||||
"start": 32,
|
||||
|
||||
Reference in New Issue
Block a user