mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
790a262c07
swc_babel_ast: - Rename as `swc_estree_ast`. swc_babel_compat: - Rename as `swc_estree_compat`. swc_babel_visit: - Rename as `swc_estree_visit`.
461 lines
21 KiB
JSON
461 lines
21 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 144,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 9,
|
|
"column": 0
|
|
}
|
|
},
|
|
"errors": [],
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 144,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 9,
|
|
"column": 0
|
|
}
|
|
},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start": 0,
|
|
"end": 143,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 1
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 6,
|
|
"end": 15,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 15
|
|
},
|
|
"identifierName": "Rectangle"
|
|
},
|
|
"name": "Rectangle"
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start": 16,
|
|
"end": 143,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 1
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ClassProperty",
|
|
"start": 22,
|
|
"end": 33,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 15
|
|
}
|
|
},
|
|
"static": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 22,
|
|
"end": 28,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 10
|
|
},
|
|
"identifierName": "height"
|
|
},
|
|
"name": "height"
|
|
},
|
|
"computed": false,
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"start": 31,
|
|
"end": 32,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 14
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassProperty",
|
|
"start": 38,
|
|
"end": 44,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 10
|
|
}
|
|
},
|
|
"static": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 38,
|
|
"end": 43,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 9
|
|
},
|
|
"identifierName": "width"
|
|
},
|
|
"name": "width"
|
|
},
|
|
"computed": false,
|
|
"value": null
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 49,
|
|
"end": 141,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 49,
|
|
"end": 60,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 15
|
|
},
|
|
"identifierName": "constructor"
|
|
},
|
|
"name": "constructor"
|
|
},
|
|
"computed": false,
|
|
"kind": "constructor",
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 61,
|
|
"end": 67,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 22
|
|
},
|
|
"identifierName": "height"
|
|
},
|
|
"name": "height"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 69,
|
|
"end": 74,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 29
|
|
},
|
|
"identifierName": "width"
|
|
},
|
|
"name": "width"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 76,
|
|
"end": 141,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 86,
|
|
"end": 107,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 29
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 86,
|
|
"end": 106,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 28
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 86,
|
|
"end": 97,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 19
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 86,
|
|
"end": 90,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"computed": false,
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 91,
|
|
"end": 97,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 19
|
|
},
|
|
"identifierName": "height"
|
|
},
|
|
"name": "height"
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 100,
|
|
"end": 106,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 28
|
|
},
|
|
"identifierName": "height"
|
|
},
|
|
"name": "height"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 116,
|
|
"end": 135,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 27
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 116,
|
|
"end": 134,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 26
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 116,
|
|
"end": 126,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 18
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 116,
|
|
"end": 120,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"computed": false,
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 121,
|
|
"end": 126,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 18
|
|
},
|
|
"identifierName": "width"
|
|
},
|
|
"name": "width"
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 129,
|
|
"end": 134,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 26
|
|
},
|
|
"identifierName": "width"
|
|
},
|
|
"name": "width"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"comments": []
|
|
}
|