Skip to content

Instantly share code, notes, and snippets.

@armano2
Created November 21, 2018 22:54
Show Gist options
  • Save armano2/b26b9e77438c72c5b1c875024272c2ed to your computer and use it in GitHub Desktop.
Save armano2/b26b9e77438c72c5b1c875024272c2ed to your computer and use it in GitHub Desktop.
{
"type": "Program",
"range": [
1,
48
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 3,
"column": 8
}
},
"body": [
{
"type": "TSAbstractClassDeclaration",
"range": [
1,
39
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 38
}
},
"superTypeParameters": {
"type": "TSTypeParameterInstantiation",
"range": [
31,
36
],
"loc": {
"start": {
"line": 2,
"column": 30
},
"end": {
"line": 2,
"column": 35
}
},
"params": [
{
"type": "TSTypeReference",
"range": [
32,
35
],
"loc": {
"start": {
"line": 2,
"column": 31
},
"end": {
"line": 2,
"column": 34
}
},
"typeName": {
"type": "Identifier",
"range": [
32,
35
],
"loc": {
"start": {
"line": 2,
"column": 31
},
"end": {
"line": 2,
"column": 34
}
},
"name": "Baz"
}
}
]
},
"id": {
"type": "Identifier",
"range": [
16,
19
],
"loc": {
"start": {
"line": 2,
"column": 15
},
"end": {
"line": 2,
"column": 18
}
},
"name": "Foo"
},
"body": {
"type": "ClassBody",
"body": [],
"range": [
37,
39
],
"loc": {
"start": {
"line": 2,
"column": 36
},
"end": {
"line": 2,
"column": 38
}
}
},
"superClass": {
"type": "Identifier",
"range": [
28,
31
],
"loc": {
"start": {
"line": 2,
"column": 27
},
"end": {
"line": 2,
"column": 30
}
},
"name": "Bar"
}
}
],
"sourceType": "script",
"tokens": [
{
"type": "Identifier",
"value": "abstract",
"range": [
1,
9
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 8
}
}
},
{
"type": "Keyword",
"value": "class",
"range": [
10,
15
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 14
}
}
},
{
"type": "Identifier",
"value": "Foo",
"range": [
16,
19
],
"loc": {
"start": {
"line": 2,
"column": 15
},
"end": {
"line": 2,
"column": 18
}
}
},
{
"type": "Keyword",
"value": "extends",
"range": [
20,
27
],
"loc": {
"start": {
"line": 2,
"column": 19
},
"end": {
"line": 2,
"column": 26
}
}
},
{
"type": "Identifier",
"value": "Bar",
"range": [
28,
31
],
"loc": {
"start": {
"line": 2,
"column": 27
},
"end": {
"line": 2,
"column": 30
}
}
},
{
"type": "Punctuator",
"value": "<",
"range": [
31,
32
],
"loc": {
"start": {
"line": 2,
"column": 30
},
"end": {
"line": 2,
"column": 31
}
}
},
{
"type": "Identifier",
"value": "Baz",
"range": [
32,
35
],
"loc": {
"start": {
"line": 2,
"column": 31
},
"end": {
"line": 2,
"column": 34
}
}
},
{
"type": "Punctuator",
"value": ">",
"range": [
35,
36
],
"loc": {
"start": {
"line": 2,
"column": 34
},
"end": {
"line": 2,
"column": 35
}
}
},
{
"type": "Punctuator",
"value": "{",
"range": [
37,
38
],
"loc": {
"start": {
"line": 2,
"column": 36
},
"end": {
"line": 2,
"column": 37
}
}
},
{
"type": "Punctuator",
"value": "}",
"range": [
38,
39
],
"loc": {
"start": {
"line": 2,
"column": 37
},
"end": {
"line": 2,
"column": 38
}
}
}
],
"comments": [],
"parent": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment