firescript
Version:
Firescript language
172 lines (171 loc) • 3.92 kB
JSON
{
"type": "Program",
"body": [
{
"type": "VariableDeclaration",
"kind": "const",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "name",
"index": 6,
"length": 6,
"line": 1,
"lineEnd": 1,
"columnEnd": 12,
"column": 7,
"indention": 0
},
"init": {
"type": "Literal",
"value": "World",
"raw": "'World'",
"index": 13,
"length": 8,
"line": 1,
"lineEnd": 1,
"columnEnd": 21,
"column": 14,
"indention": 0
},
"index": 11,
"length": 10,
"line": 1,
"lineEnd": 1,
"columnEnd": 21,
"column": 12,
"indention": 0
}
],
"index": 0,
"length": 26,
"line": 1,
"lineEnd": 2,
"columnEnd": 5,
"column": 1,
"indention": 0
},
{
"type": "VariableDeclaration",
"kind": "const",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "msg",
"index": 27,
"length": 5,
"line": 2,
"lineEnd": 2,
"columnEnd": 11,
"column": 7,
"indention": 0
},
"init": {
"type": "TemplateLiteral",
"quasis": [
{
"type": "TemplateElement",
"value": {
"cooked": "Hello ",
"raw": "Hello "
},
"tail": false,
"index": 33,
"length": 13,
"line": 2,
"lineEnd": 2,
"columnEnd": 25,
"column": 13,
"indention": 0
},
{
"type": "TemplateElement",
"value": {
"cooked": "",
"raw": ""
},
"tail": true,
"index": 46,
"length": 3,
"line": 2,
"lineEnd": 2,
"columnEnd": 28,
"column": 26,
"indention": 0
}
],
"expressions": [
{
"type": "Identifier",
"name": "name",
"index": 42,
"length": 6,
"line": 2,
"lineEnd": 2,
"columnEnd": 27,
"column": 22,
"indention": 0
}
],
"index": 33,
"length": 16,
"line": 2,
"lineEnd": 2,
"columnEnd": 28,
"column": 13,
"indention": 0
},
"index": 31,
"length": 18,
"line": 2,
"lineEnd": 2,
"columnEnd": 28,
"column": 11,
"indention": 0
}
],
"index": 21,
"length": 31,
"line": 2,
"lineEnd": 3,
"columnEnd": 3,
"column": 1,
"indention": 0
},
{
"type": "LogStatement",
"arguments": [
{
"type": "Identifier",
"name": "msg",
"index": 53,
"length": 4,
"line": 3,
"lineEnd": 3,
"columnEnd": 8,
"column": 5,
"indention": 0
}
],
"index": 49,
"length": 8,
"line": 3,
"lineEnd": 3,
"columnEnd": 8,
"column": 1,
"indention": 0
}
],
"sourceType": "module",
"index": 0,
"length": 57,
"line": 1,
"lineEnd": 3,
"columnEnd": 8,
"column": 1,
"indention": 0
}