UNPKG

awv3

Version:
1,188 lines 25.7 kB
{ "type": "File", "start": 0, "end": 126, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 8, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 126, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 8, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ExportNamedDeclaration", "start": 0, "end": 60, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 3, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "FunctionDeclaration", "start": 7, "end": 60, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 3, "column": 1 } }, "id": { "type": "Identifier", "start": 16, "end": 19, "loc": { "start": { "line": 1, "column": 16 }, "end": { "line": 1, "column": 19 }, "identifierName": "log" }, "name": "log" }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 20, "end": 27, "loc": { "start": { "line": 1, "column": 20 }, "end": { "line": 1, "column": 27 }, "identifierName": "message" }, "name": "message" } ], "body": { "type": "BlockStatement", "start": 29, "end": 60, "loc": { "start": { "line": 1, "column": 29 }, "end": { "line": 3, "column": 1 } }, "body": [ { "type": "ExpressionStatement", "start": 35, "end": 58, "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 27 } }, "expression": { "type": "CallExpression", "start": 35, "end": 57, "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 26 } }, "callee": { "type": "MemberExpression", "start": 35, "end": 48, "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 17 } }, "object": { "type": "Identifier", "start": 35, "end": 42, "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 11 }, "identifierName": "console" }, "name": "console" }, "property": { "type": "Identifier", "start": 43, "end": 48, "loc": { "start": { "line": 2, "column": 12 }, "end": { "line": 2, "column": 17 }, "identifierName": "error" }, "name": "error" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 49, "end": 56, "loc": { "start": { "line": 2, "column": 18 }, "end": { "line": 2, "column": 25 }, "identifierName": "message" }, "name": "message" } ] } } ], "directives": [] }, "leadingComments": [], "trailingComments": [] } }, { "type": "ExportNamedDeclaration", "start": 62, "end": 125, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 7, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "FunctionDeclaration", "start": 69, "end": 125, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 7, "column": 1 } }, "id": { "type": "Identifier", "start": 78, "end": 82, "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 20 }, "identifierName": "halt" }, "name": "halt" }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 83, "end": 90, "loc": { "start": { "line": 5, "column": 21 }, "end": { "line": 5, "column": 28 }, "identifierName": "message" }, "name": "message" } ], "body": { "type": "BlockStatement", "start": 92, "end": 125, "loc": { "start": { "line": 5, "column": 30 }, "end": { "line": 7, "column": 1 } }, "body": [ { "type": "ThrowStatement", "start": 98, "end": 123, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 29 } }, "argument": { "type": "NewExpression", "start": 104, "end": 122, "loc": { "start": { "line": 6, "column": 10 }, "end": { "line": 6, "column": 28 } }, "callee": { "type": "Identifier", "start": 108, "end": 113, "loc": { "start": { "line": 6, "column": 14 }, "end": { "line": 6, "column": 19 }, "identifierName": "Error" }, "name": "Error" }, "arguments": [ { "type": "Identifier", "start": 114, "end": 121, "loc": { "start": { "line": 6, "column": 20 }, "end": { "line": 6, "column": 27 }, "identifierName": "message" }, "name": "message" } ] } } ], "directives": [] }, "leadingComments": [], "trailingComments": [] } } ], "directives": [] }, "comments": [], "tokens": [ { "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": 0, "end": 6, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 6 } } }, { "type": { "label": "function", "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "function", "start": 7, "end": 15, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "log", "start": 16, "end": 19, "loc": { "start": { "line": 1, "column": 16 }, "end": { "line": 1, "column": 19 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "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": "message", "start": 20, "end": 27, "loc": { "start": { "line": 1, "column": 20 }, "end": { "line": 1, "column": 27 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 27, "end": 28, "loc": { "start": { "line": 1, "column": 27 }, "end": { "line": 1, "column": 28 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 29, "end": 30, "loc": { "start": { "line": 1, "column": 29 }, "end": { "line": 1, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "console", "start": 35, "end": 42, "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 11 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 42, "end": 43, "loc": { "start": { "line": 2, "column": 11 }, "end": { "line": 2, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "error", "start": 43, "end": 48, "loc": { "start": { "line": 2, "column": 12 }, "end": { "line": 2, "column": 17 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 48, "end": 49, "loc": { "start": { "line": 2, "column": 17 }, "end": { "line": 2, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "message", "start": 49, "end": 56, "loc": { "start": { "line": 2, "column": 18 }, "end": { "line": 2, "column": 25 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 56, "end": 57, "loc": { "start": { "line": 2, "column": 25 }, "end": { "line": 2, "column": 26 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 57, "end": 58, "loc": { "start": { "line": 2, "column": 26 }, "end": { "line": 2, "column": 27 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 59, "end": 60, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 1 } } }, { "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": 62, "end": 68, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 6 } } }, { "type": { "label": "function", "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "function", "start": 69, "end": 77, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "halt", "start": 78, "end": 82, "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 20 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 82, "end": 83, "loc": { "start": { "line": 5, "column": 20 }, "end": { "line": 5, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "message", "start": 83, "end": 90, "loc": { "start": { "line": 5, "column": 21 }, "end": { "line": 5, "column": 28 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 90, "end": 91, "loc": { "start": { "line": 5, "column": 28 }, "end": { "line": 5, "column": 29 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 92, "end": 93, "loc": { "start": { "line": 5, "column": 30 }, "end": { "line": 5, "column": 31 } } }, { "type": { "label": "throw", "keyword": "throw", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "throw", "start": 98, "end": 103, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 9 } } }, { "type": { "label": "new", "keyword": "new", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "new", "start": 104, "end": 107, "loc": { "start": { "line": 6, "column": 10 }, "end": { "line": 6, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Error", "start": 108, "end": 113, "loc": { "start": { "line": 6, "column": 14 }, "end": { "line": 6, "column": 19 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 113, "end": 114, "loc": { "start": { "line": 6, "column": 19 }, "end": { "line": 6, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "message", "start": 114, "end": 121, "loc": { "start": { "line": 6, "column": 20 }, "end": { "line": 6, "column": 27 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 121, "end": 122, "loc": { "start": { "line": 6, "column": 27 }, "end": { "line": 6, "column": 28 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 122, "end": 123, "loc": { "start": { "line": 6, "column": 28 }, "end": { "line": 6, "column": 29 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 124, "end": 125, "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": 126, "end": 126, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 0 } } } ] }