swc/crates/swc_estree_compat/tests/fixtures/object-spread/output.json
Donny/강동윤 790a262c07
refactor(es/estree): Rename: babel => estree (#2846)
swc_babel_ast:
 - Rename as `swc_estree_ast`.

swc_babel_compat:
 - Rename as `swc_estree_compat`.

swc_babel_visit:
 - Rename as `swc_estree_visit`.
2021-11-24 05:34:41 +09:00

320 lines
13 KiB
JSON

{
"type": "File",
"start": 0,
"end": 70,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 8,
"column": 0
}
},
"errors": [],
"program": {
"type": "Program",
"start": 0,
"end": 70,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 8,
"column": 0
}
},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "VariableDeclaration",
"start": 0,
"end": 29,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 6,
"end": 28,
"loc": {
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 3,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 6,
"end": 7,
"loc": {
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 7
},
"identifierName": "a"
},
"name": "a"
},
"init": {
"type": "ObjectExpression",
"start": 10,
"end": 28,
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 3,
"column": 1
}
},
"extra": {
"trailingComma": 25
},
"properties": [
{
"type": "ObjectProperty",
"start": 16,
"end": 25,
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 13
}
},
"method": false,
"key": {
"type": "Identifier",
"start": 16,
"end": 20,
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 8
},
"identifierName": "name"
},
"name": "name"
},
"computed": false,
"shorthand": false,
"value": {
"type": "StringLiteral",
"start": 22,
"end": 25,
"loc": {
"start": {
"line": 2,
"column": 10
},
"end": {
"line": 2,
"column": 13
}
},
"extra": {
"rawValue": "a",
"raw": "\"a\""
},
"value": "a"
}
}
]
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 30,
"end": 69,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 7,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 36,
"end": 68,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 7,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 36,
"end": 37,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 7
},
"identifierName": "b"
},
"name": "b"
},
"init": {
"type": "ObjectExpression",
"start": 40,
"end": 68,
"loc": {
"start": {
"line": 4,
"column": 10
},
"end": {
"line": 7,
"column": 1
}
},
"extra": {
"trailingComma": 65
},
"properties": [
{
"type": "SpreadElement",
"start": 46,
"end": 50,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 8
}
},
"argument": {
"type": "Identifier",
"start": 49,
"end": 50,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 8
},
"identifierName": "a"
},
"name": "a"
}
},
{
"type": "ObjectProperty",
"start": 56,
"end": 65,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 13
}
},
"method": false,
"key": {
"type": "Identifier",
"start": 56,
"end": 60,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 8
},
"identifierName": "name"
},
"name": "name"
},
"computed": false,
"shorthand": false,
"value": {
"type": "StringLiteral",
"start": 62,
"end": 65,
"loc": {
"start": {
"line": 6,
"column": 10
},
"end": {
"line": 6,
"column": 13
}
},
"extra": {
"rawValue": "b",
"raw": "\"b\""
},
"value": "b"
}
}
]
}
}
],
"kind": "const"
}
],
"directives": []
},
"comments": []
}