UNPKG

@niweera/node-asterer

Version:

A CLI tool to generate the AST of a given JavaScript File and save it in *.JSON format.

84 lines 2.38 kB
{ "type": "Program", "start": 0, "end": 13, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 2, "column": 0 } }, "body": [ { "type": "VariableDeclaration", "start": 0, "end": 12, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 12 } }, "declarations": [ { "type": "VariableDeclarator", "start": 6, "end": 11, "loc": { "start": { "line": 1, "column": 6 }, "end": { "line": 1, "column": 11 } }, "id": { "type": "Identifier", "start": 6, "end": 7, "loc": { "start": { "line": 1, "column": 6 }, "end": { "line": 1, "column": 7 } }, "name": "a" }, "init": { "type": "Literal", "start": 10, "end": 11, "loc": { "start": { "line": 1, "column": 10 }, "end": { "line": 1, "column": 11 } }, "value": 1, "raw": "1" } } ], "kind": "const" } ], "sourceType": "script" }