Huáng Jùnliàng dc7c5640e9
Compact parser fixture loc info (#11322)
* chore: compact loc information in parser fixtures

* chore: update test fixtures
2020-03-23 20:10:29 -04:00

42 lines
1.4 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"type": "File",
"start":0,"end":101,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":83}},
"program": {
"type": "Program",
"start":0,"end":101,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":83}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start":0,"end":17,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":8}},
"expression": {
"type": "StringLiteral",
"start":1,"end":15,"loc":{"start":{"line":1,"column":1},"end":{"line":2,"column":6}},
"extra": {
"rawValue": "beforeafter",
"raw": "\"beforeafter\"",
"parenthesized": true,
"parenStart": 0
},
"value": "beforeafter"
},
"trailingComments": [
{
"type": "CommentLine",
"value": " ^ That's a U+2028 LINE SEPARATOR UTF-16 char (between 'before' and 'after')",
"start":18,"end":101,"loc":{"start":{"line":3,"column":0},"end":{"line":3,"column":83}}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentLine",
"value": " ^ That's a U+2028 LINE SEPARATOR UTF-16 char (between 'before' and 'after')",
"start":18,"end":101,"loc":{"start":{"line":3,"column":0},"end":{"line":3,"column":83}}
}
]
}