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/2/expected.json
vendored
25
test/fixtures/flow/predicates/2/expected.json
vendored
@@ -88,37 +88,22 @@
|
||||
"column": 52
|
||||
}
|
||||
},
|
||||
"returnType": {
|
||||
"type": "TypeAnnotation",
|
||||
"start": 18,
|
||||
"predicate": {
|
||||
"type": "InferredPredicate",
|
||||
"start": 20,
|
||||
"end": 27,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 18
|
||||
"column": 20
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 27
|
||||
}
|
||||
},
|
||||
"typeAnnotation": null,
|
||||
"predicate": {
|
||||
"type": "InferredPredicate",
|
||||
"start": 20,
|
||||
"end": 27,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 20
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 27
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"returnType": null,
|
||||
"id": null,
|
||||
"generator": false,
|
||||
"expression": true,
|
||||
|
||||
Reference in New Issue
Block a user