{ "type": "File", "start": 0, "end": 155, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 8, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 155, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 8, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 41, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 41 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 9, "end": 18, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 18 } }, "imported": { "type": "Identifier", "start": 9, "end": 18, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 18 }, "identifierName": "Component" }, "name": "Component" }, "local": { "type": "Identifier", "start": 9, "end": 18, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 18 }, "identifierName": "Component" }, "name": "Component" } } ], "source": { "type": "StringLiteral", "start": 26, "end": 40, "loc": { "start": { "line": 1, "column": 26 }, "end": { "line": 1, "column": 40 } }, "extra": { "rawValue": "../component", "raw": "\"../component\"" }, "value": "../component" } }, { "type": "ExportNamedDeclaration", "start": 45, "end": 153, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 7, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "ClassDeclaration", "start": 52, "end": 153, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 7, "column": 1 } }, "id": { "type": "Identifier", "start": 58, "end": 74, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 29 }, "identifierName": "DisplayComponent" }, "name": "DisplayComponent" }, "superClass": { "type": "Identifier", "start": 83, "end": 92, "loc": { "start": { "line": 3, "column": 38 }, "end": { "line": 3, "column": 47 }, "identifierName": "Component" }, "name": "Component" }, "body": { "type": "ClassBody", "start": 93, "end": 153, "loc": { "start": { "line": 3, "column": 48 }, "end": { "line": 7, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 100, "end": 150, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 6, "column": 5 } }, "static": true, "computed": false, "key": { "type": "Identifier", "start": 107, "end": 112, "loc": { "start": { "line": 4, "column": 11 }, "end": { "line": 4, "column": 16 }, "identifierName": "getId" }, "name": "getId" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 115, "end": 150, "loc": { "start": { "line": 4, "column": 19 }, "end": { "line": 6, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 126, "end": 143, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 25 } }, "argument": { "type": "StringLiteral", "start": 133, "end": 142, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 24 } }, "extra": { "rawValue": "Display", "raw": "\"Display\"" }, "value": "Display" } } ], "directives": [] } } ] }, "leadingComments": [], "trailingComments": [] } } ], "directives": [] }, "comments": [], "tokens": [ { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 0, "end": 6, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7, "end": 8, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Component", "start": 9, "end": 18, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 18 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19, "end": 20, "loc": { "start": { "line": 1, "column": 19 }, "end": { "line": 1, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 21, "end": 25, "loc": { "start": { "line": 1, "column": 21 }, "end": { "line": 1, "column": 25 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../component", "start": 26, "end": 40, "loc": { "start": { "line": 1, "column": 26 }, "end": { "line": 1, "column": 40 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 40, "end": 41, "loc": { "start": { "line": 1, "column": 40 }, "end": { "line": 1, "column": 41 } } }, { "type": { "label": "export", "keyword": "export", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "export", "start": 45, "end": 51, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 6 } } }, { "type": { "label": "class", "keyword": "class", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "class", "start": 52, "end": 57, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "DisplayComponent", "start": 58, "end": 74, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 29 } } }, { "type": { "label": "extends", "keyword": "extends", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "extends", "start": 75, "end": 82, "loc": { "start": { "line": 3, "column": 30 }, "end": { "line": 3, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Component", "start": 83, "end": 92, "loc": { "start": { "line": 3, "column": 38 }, "end": { "line": 3, "column": 47 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 93, "end": 94, "loc": { "start": { "line": 3, "column": 48 }, "end": { "line": 3, "column": 49 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "static", "start": 100, "end": 106, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getId", "start": 107, "end": 112, "loc": { "start": { "line": 4, "column": 11 }, "end": { "line": 4, "column": 16 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 112, "end": 113, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 17 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 113, "end": 114, "loc": { "start": { "line": 4, "column": 17 }, "end": { "line": 4, "column": 18 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 115, "end": 116, "loc": { "start": { "line": 4, "column": 19 }, "end": { "line": 4, "column": 20 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 126, "end": 132, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 14 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Display", "start": 133, "end": 142, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 24 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 142, "end": 143, "loc": { "start": { "line": 5, "column": 24 }, "end": { "line": 5, "column": 25 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 149, "end": 150, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 5 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 152, "end": 153, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 1 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 155, "end": 155, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 0 } } } ] }