mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +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`.
292 lines
14 KiB
JSON
292 lines
14 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 67,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 0
|
|
}
|
|
},
|
|
"errors": [],
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 67,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 0
|
|
}
|
|
},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 0,
|
|
"end": 66,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 2
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 6,
|
|
"end": 65,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 1
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 6,
|
|
"end": 9,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 9
|
|
},
|
|
"identifierName": "App"
|
|
},
|
|
"name": "App"
|
|
},
|
|
"init": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 12,
|
|
"end": 65,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 1
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 12,
|
|
"end": 17,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 17
|
|
},
|
|
"identifierName": "props"
|
|
},
|
|
"name": "props"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 21,
|
|
"end": 65,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 1
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 27,
|
|
"end": 63,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 40
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "JSXElement",
|
|
"start": 34,
|
|
"end": 63,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 40
|
|
}
|
|
},
|
|
"openingElement": {
|
|
"type": "JSXOpeningElement",
|
|
"start": 34,
|
|
"end": 63,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 40
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"start": 35,
|
|
"end": 38,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 15
|
|
}
|
|
},
|
|
"name": "div"
|
|
},
|
|
"attributes": [
|
|
{
|
|
"type": "JSXAttribute",
|
|
"start": 39,
|
|
"end": 47,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 24
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"start": 39,
|
|
"end": 41,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 18
|
|
}
|
|
},
|
|
"name": "id"
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"start": 42,
|
|
"end": 47,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 24
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "app",
|
|
"raw": "\"app\""
|
|
},
|
|
"value": "app"
|
|
}
|
|
},
|
|
{
|
|
"type": "JSXSpreadAttribute",
|
|
"start": 48,
|
|
"end": 60,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 37
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start": 53,
|
|
"end": 58,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 35
|
|
},
|
|
"identifierName": "props"
|
|
},
|
|
"name": "props"
|
|
}
|
|
}
|
|
],
|
|
"selfClosing": true
|
|
},
|
|
"closingElement": null,
|
|
"children": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"comments": []
|
|
}
|