Created
January 30, 2019 03:32
-
-
Save ksaldana1/502744746c4924f56001ac9da17674cf to your computer and use it in GitHub Desktop.
Example AST https://astexplorer.net/#/gist/200ab36ee0a49e62e3d39c256defc2ee/03aad52d9f4a1c8558d6483f9a3392b3c0f028b0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "type": "Program", | |
| "start": 0, | |
| "end": 80, | |
| "loc": { | |
| "start": { | |
| "line": 1, | |
| "column": 0 | |
| }, | |
| "end": { | |
| "line": 3, | |
| "column": 36 | |
| } | |
| }, | |
| "comments": [], | |
| "range": [ | |
| 0, | |
| 80 | |
| ], | |
| "sourceType": "module", | |
| "body": [ | |
| { | |
| "type": "ImportDeclaration", | |
| "start": 0, | |
| "end": 42, | |
| "loc": { | |
| "start": { | |
| "line": 1, | |
| "column": 0 | |
| }, | |
| "end": { | |
| "line": 1, | |
| "column": 42 | |
| } | |
| }, | |
| "specifiers": [ | |
| { | |
| "type": "ImportSpecifier", | |
| "start": 9, | |
| "end": 15, | |
| "loc": { | |
| "start": { | |
| "line": 1, | |
| "column": 9 | |
| }, | |
| "end": { | |
| "line": 1, | |
| "column": 15 | |
| } | |
| }, | |
| "imported": { | |
| "type": "Identifier", | |
| "start": 9, | |
| "end": 15, | |
| "loc": { | |
| "start": { | |
| "line": 1, | |
| "column": 9 | |
| }, | |
| "end": { | |
| "line": 1, | |
| "column": 15 | |
| }, | |
| "identifierName": "protos" | |
| }, | |
| "name": "protos", | |
| "range": [ | |
| 9, | |
| 15 | |
| ], | |
| "_babelType": "Identifier" | |
| }, | |
| "importKind": null, | |
| "local": { | |
| "type": "Identifier", | |
| "start": 9, | |
| "end": 15, | |
| "loc": { | |
| "start": { | |
| "line": 1, | |
| "column": 9 | |
| }, | |
| "end": { | |
| "line": 1, | |
| "column": 15 | |
| }, | |
| "identifierName": "protos" | |
| }, | |
| "name": "protos", | |
| "range": [ | |
| 9, | |
| 15 | |
| ], | |
| "_babelType": "Identifier" | |
| }, | |
| "range": [ | |
| 9, | |
| 15 | |
| ], | |
| "_babelType": "ImportSpecifier" | |
| } | |
| ], | |
| "importKind": "value", | |
| "source": { | |
| "type": "Literal", | |
| "start": 23, | |
| "end": 42, | |
| "loc": { | |
| "start": { | |
| "line": 1, | |
| "column": 23 | |
| }, | |
| "end": { | |
| "line": 1, | |
| "column": 42 | |
| } | |
| }, | |
| "extra": { | |
| "rawValue": "my_company_protos", | |
| "raw": "'my_company_protos'" | |
| }, | |
| "value": "my_company_protos", | |
| "range": [ | |
| 23, | |
| 42 | |
| ], | |
| "_babelType": "StringLiteral", | |
| "raw": "'my_company_protos'" | |
| }, | |
| "range": [ | |
| 0, | |
| 42 | |
| ], | |
| "_babelType": "ImportDeclaration" | |
| }, | |
| { | |
| "type": "ExportNamedDeclaration", | |
| "start": 44, | |
| "end": 80, | |
| "loc": { | |
| "start": { | |
| "line": 3, | |
| "column": 0 | |
| }, | |
| "end": { | |
| "line": 3, | |
| "column": 36 | |
| } | |
| }, | |
| "specifiers": [], | |
| "source": null, | |
| "exportKind": "type", | |
| "declaration": { | |
| "type": "TypeAlias", | |
| "start": 51, | |
| "end": 80, | |
| "loc": { | |
| "start": { | |
| "line": 3, | |
| "column": 7 | |
| }, | |
| "end": { | |
| "line": 3, | |
| "column": 36 | |
| } | |
| }, | |
| "id": { | |
| "type": "Identifier", | |
| "start": 56, | |
| "end": 60, | |
| "loc": { | |
| "start": { | |
| "line": 3, | |
| "column": 12 | |
| }, | |
| "end": { | |
| "line": 3, | |
| "column": 16 | |
| }, | |
| "identifierName": "User" | |
| }, | |
| "name": "User", | |
| "range": [ | |
| 56, | |
| 60 | |
| ], | |
| "_babelType": "Identifier" | |
| }, | |
| "typeParameters": null, | |
| "right": { | |
| "type": "GenericTypeAnnotation", | |
| "start": 63, | |
| "end": 79, | |
| "loc": { | |
| "start": { | |
| "line": 3, | |
| "column": 19 | |
| }, | |
| "end": { | |
| "line": 3, | |
| "column": 35 | |
| } | |
| }, | |
| "typeParameters": null, | |
| "id": { | |
| "type": "QualifiedTypeIdentifier", | |
| "start": 63, | |
| "end": 79, | |
| "loc": { | |
| "start": { | |
| "line": 3, | |
| "column": 19 | |
| }, | |
| "end": { | |
| "line": 3, | |
| "column": 35 | |
| } | |
| }, | |
| "qualification": { | |
| "type": "QualifiedTypeIdentifier", | |
| "start": 63, | |
| "end": 74, | |
| "loc": { | |
| "start": { | |
| "line": 3, | |
| "column": 19 | |
| }, | |
| "end": { | |
| "line": 3, | |
| "column": 30 | |
| } | |
| }, | |
| "qualification": { | |
| "type": "Identifier", | |
| "start": 63, | |
| "end": 69, | |
| "loc": { | |
| "start": { | |
| "line": 3, | |
| "column": 19 | |
| }, | |
| "end": { | |
| "line": 3, | |
| "column": 25 | |
| }, | |
| "identifierName": "protos" | |
| }, | |
| "name": "protos", | |
| "range": [ | |
| 63, | |
| 69 | |
| ], | |
| "_babelType": "Identifier" | |
| }, | |
| "range": [ | |
| 63, | |
| 74 | |
| ], | |
| "_babelType": "QualifiedTypeIdentifier" | |
| }, | |
| "range": [ | |
| 63, | |
| 79 | |
| ], | |
| "_babelType": "QualifiedTypeIdentifier" | |
| }, | |
| "range": [ | |
| 63, | |
| 79 | |
| ], | |
| "_babelType": "GenericTypeAnnotation" | |
| }, | |
| "range": [ | |
| 51, | |
| 80 | |
| ], | |
| "_babelType": "TypeAlias" | |
| }, | |
| "range": [ | |
| 44, | |
| 80 | |
| ], | |
| "_babelType": "ExportNamedDeclaration" | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment