{ "type": "File", "start": 0, "end": 147, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 8, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 147, "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": 145, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 7, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "ClassDeclaration", "start": 52, "end": 145, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 7, "column": 1 } }, "id": { "type": "Identifier", "start": 58, "end": 70, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 25 }, "identifierName": "HubComponent" }, "name": "HubComponent" }, "superClass": { "type": "Identifier", "start": 79, "end": 88, "loc": { "start": { "line": 3, "column": 34 }, "end": { "line": 3, "column": 43 }, "identifierName": "Component" }, "name": "Component" }, "body": { "type": "ClassBody", "start": 89, "end": 145, "loc": { "start": { "line": 3, "column": 44 }, "end": { "line": 7, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 96, "end": 142, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 6, "column": 5 } }, "static": true, "computed": false, "key": { "type": "Identifier", "start": 103, "end": 108, "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": 111, "end": 142, "loc": { "start": { "line": 4, "column": 19 }, "end": { "line": 6, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 122, "end": 135, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 21 } }, "argument": { "type": "StringLiteral", "start": 129, "end": 134, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 20 } }, "extra": { "rawValue": "Hub", "raw": "\"Hub\"" }, "value": "Hub" } } ], "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": "HubComponent", "start": 58, "end": 70, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 25 } } }, { "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": 71, "end": 78, "loc": { "start": { "line": 3, "column": 26 }, "end": { "line": 3, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Component", "start": 79, "end": 88, "loc": { "start": { "line": 3, "column": 34 }, "end": { "line": 3, "column": 43 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 89, "end": 90, "loc": { "start": { "line": 3, "column": 44 }, "end": { "line": 3, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "static", "start": 96, "end": 102, "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": 103, "end": 108, "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": 108, "end": 109, "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": 109, "end": 110, "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": 111, "end": 112, "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": 122, "end": 128, "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": "Hub", "start": 129, "end": 134, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 20 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 134, "end": 135, "loc": { "start": { "line": 5, "column": 20 }, "end": { "line": 5, "column": 21 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 141, "end": 142, "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": 144, "end": 145, "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": 147, "end": 147, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 0 } } } ] }