Compact parser fixture loc info (#11322)

* chore: compact loc information in parser fixtures

* chore: update test fixtures
This commit is contained in:
Huáng Jùnliàng
2020-03-23 20:10:29 -04:00
committed by GitHub
parent 6a728a05a8
commit dc7c5640e9
3793 changed files with 38861 additions and 472314 deletions

View File

@@ -1,126 +1,36 @@
{
"type": "File",
"start": 0,
"end": 42,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 4,
"column": 1
}
},
"start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}},
"program": {
"type": "Program",
"start": 0,
"end": 42,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 4,
"column": 1
}
},
"start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "EnumDeclaration",
"start": 0,
"end": 42,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 4,
"column": 1
}
},
"start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}},
"id": {
"type": "Identifier",
"start": 5,
"end": 6,
"loc": {
"start": {
"line": 1,
"column": 5
},
"end": {
"line": 1,
"column": 6
},
"identifierName": "E"
},
"start":5,"end":6,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":6},"identifierName":"E"},
"name": "E"
},
"body": {
"type": "EnumStringBody",
"start": 7,
"end": 42,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 4,
"column": 1
}
},
"start":7,"end":42,"loc":{"start":{"line":1,"column":7},"end":{"line":4,"column":1}},
"explicitType": true,
"members": [
{
"type": "EnumStringMember",
"start": 21,
"end": 28,
"loc": {
"start": {
"line": 2,
"column": 2
},
"end": {
"line": 2,
"column": 9
}
},
"start":21,"end":28,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":9}},
"id": {
"type": "Identifier",
"start": 21,
"end": 22,
"loc": {
"start": {
"line": 2,
"column": 2
},
"end": {
"line": 2,
"column": 3
},
"identifierName": "A"
},
"start":21,"end":22,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":3},"identifierName":"A"},
"name": "A"
},
"init": {
"type": "StringLiteral",
"start": 25,
"end": 28,
"loc": {
"start": {
"line": 2,
"column": 6
},
"end": {
"line": 2,
"column": 9
}
},
"start":25,"end":28,"loc":{"start":{"line":2,"column":6},"end":{"line":2,"column":9}},
"extra": {
"rawValue": "a",
"raw": "\"a\""
@@ -130,49 +40,15 @@
},
{
"type": "EnumStringMember",
"start": 32,
"end": 39,
"loc": {
"start": {
"line": 3,
"column": 2
},
"end": {
"line": 3,
"column": 9
}
},
"start":32,"end":39,"loc":{"start":{"line":3,"column":2},"end":{"line":3,"column":9}},
"id": {
"type": "Identifier",
"start": 32,
"end": 33,
"loc": {
"start": {
"line": 3,
"column": 2
},
"end": {
"line": 3,
"column": 3
},
"identifierName": "B"
},
"start":32,"end":33,"loc":{"start":{"line":3,"column":2},"end":{"line":3,"column":3},"identifierName":"B"},
"name": "B"
},
"init": {
"type": "StringLiteral",
"start": 36,
"end": 39,
"loc": {
"start": {
"line": 3,
"column": 6
},
"end": {
"line": 3,
"column": 9
}
},
"start":36,"end":39,"loc":{"start":{"line":3,"column":6},"end":{"line":3,"column":9}},
"extra": {
"rawValue": "b",
"raw": "\"b\""