Allows the interface to be used as an Identifier for flow plugin (#12254)

This commit is contained in:
Sosuke Suzuki
2020-10-26 22:50:57 +09:00
committed by GitHub
parent a967910b8b
commit f5bd9f2013
27 changed files with 531 additions and 11 deletions

View File

@@ -0,0 +1,44 @@
{
"type": "File",
"start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}},
"errors": [
"SyntaxError: Unexpected reserved word 'interface' (1:1)"
],
"program": {
"type": "Program",
"start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}},
"expression": {
"type": "SequenceExpression",
"start":1,"end":17,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":17}},
"extra": {
"parenthesized": true,
"parenStart": 0
},
"expressions": [
{
"type": "Identifier",
"start":1,"end":10,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":10},"identifierName":"interface"},
"name": "interface"
},
{
"type": "StringLiteral",
"start":12,"end":17,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":17}},
"extra": {
"rawValue": "foo",
"raw": "\"foo\""
},
"value": "foo"
}
]
}
}
],
"directives": []
}
}