* fix(babel-parser): Move storage of expressionValue in DirectiveLiteral to main parser so it is accessible to others. Closes #13953. Reviewed by @tolmasky. * Add results from running `OVERWRITE=true yarn jest babel-parser`. Reviewed by @tolmasky.
87 lines
3.2 KiB
JSON
87 lines
3.2 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":54,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":54}},
|
|
"errors": [
|
|
"SyntaxError: Argument name clash. (1:44)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":54,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":54}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":54,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":54}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":9,"end":10,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":10},"identifierName":"a"},
|
|
"name": "a"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":13,"end":54,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":54}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":29,"end":52,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":52}},
|
|
"expression": {
|
|
"type": "FunctionExpression",
|
|
"start":30,"end":50,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":50}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":39,"end":40,"loc":{"start":{"line":1,"column":39},"end":{"line":1,"column":40},"identifierName":"b"},
|
|
"name": "b"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":41,"end":42,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":42},"identifierName":"t"},
|
|
"name": "t"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start":44,"end":45,"loc":{"start":{"line":1,"column":44},"end":{"line":1,"column":45},"identifierName":"t"},
|
|
"name": "t"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":47,"end":50,"loc":{"start":{"line":1,"column":47},"end":{"line":1,"column":50}},
|
|
"body": [],
|
|
"directives": []
|
|
},
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 29
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": [
|
|
{
|
|
"type": "Directive",
|
|
"start":15,"end":28,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":28}},
|
|
"value": {
|
|
"type": "DirectiveLiteral",
|
|
"start":15,"end":27,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":27}},
|
|
"extra": {
|
|
"rawValue": "use strict",
|
|
"raw": "\"use strict\"",
|
|
"expressionValue": "use strict"
|
|
},
|
|
"value": "use strict"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |