mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +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`.
208 lines
8.5 KiB
JSON
208 lines
8.5 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 59,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 0
|
|
}
|
|
},
|
|
"errors": [],
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 59,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 0
|
|
}
|
|
},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 0,
|
|
"end": 58,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 58
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 6,
|
|
"end": 58,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 58
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 6,
|
|
"end": 12,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 12
|
|
},
|
|
"identifierName": "square"
|
|
},
|
|
"name": "square"
|
|
},
|
|
"init": {
|
|
"type": "FunctionExpression",
|
|
"start": 15,
|
|
"end": 58,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 58
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 24,
|
|
"end": 30,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 30
|
|
},
|
|
"identifierName": "number"
|
|
},
|
|
"name": "number"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 32,
|
|
"end": 58,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 58
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 34,
|
|
"end": 56,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 56
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "BinaryExpression",
|
|
"start": 41,
|
|
"end": 56,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 56
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 41,
|
|
"end": 47,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 47
|
|
},
|
|
"identifierName": "number"
|
|
},
|
|
"name": "number"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 50,
|
|
"end": 56,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 56
|
|
},
|
|
"identifierName": "number"
|
|
},
|
|
"name": "number"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"comments": []
|
|
}
|