update babylon fixtures to use File as the root node rather than Program

This commit is contained in:
Sebastian McKenzie
2015-07-25 05:24:58 +01:00
parent b088f8e6ef
commit 006f3db76a
800 changed files with 121059 additions and 73665 deletions

View File

@@ -1,62 +1,104 @@
{
"type": "Program",
"body": [
{
"type": "InterfaceDeclaration",
"id": {
"type": "Identifier",
"name": "A",
"range": [
10,
11
],
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 11
}
}
"type": "File",
"start": 0,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 14
}
},
"range": [
0,
14
],
"program": {
"type": "Program",
"start": 0,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 0
},
"typeParameters": null,
"body": {
"type": "ObjectTypeAnnotation",
"properties": [],
"indexers": [],
"callProperties": [],
"range": [
12,
14
],
"end": {
"line": 1,
"column": 14
}
},
"range": [
0,
14
],
"sourceType": "module",
"body": [
{
"type": "InterfaceDeclaration",
"start": 0,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 12
"column": 0
},
"end": {
"line": 1,
"column": 14
}
}
},
"extends": [],
"range": [
0,
14
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 14
"range": [
0,
14
],
"id": {
"type": "Identifier",
"start": 10,
"end": 11,
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 11
}
},
"range": [
10,
11
],
"name": "A"
},
"typeParameters": null,
"extends": [],
"body": {
"type": "ObjectTypeAnnotation",
"start": 12,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 14
}
},
"range": [
12,
14
],
"callProperties": [],
"properties": [],
"indexers": []
}
}
}
]
]
}
}

View File

@@ -1,57 +1,85 @@
{
"type": "Program",
"body": [
{
"type": "InterfaceDeclaration",
"id": {
"type": "Identifier",
"name": "A",
"range": [
10,
11
],
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 11
}
}
"type": "File",
"start": 0,
"end": 24,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 24
}
},
"range": [
0,
24
],
"program": {
"type": "Program",
"start": 0,
"end": 24,
"loc": {
"start": {
"line": 1,
"column": 0
},
"typeParameters": null,
"body": {
"type": "ObjectTypeAnnotation",
"properties": [],
"indexers": [],
"callProperties": [],
"range": [
22,
24
],
"end": {
"line": 1,
"column": 24
}
},
"range": [
0,
24
],
"sourceType": "module",
"body": [
{
"type": "InterfaceDeclaration",
"start": 0,
"end": 24,
"loc": {
"start": {
"line": 1,
"column": 22
"column": 0
},
"end": {
"line": 1,
"column": 24
}
}
},
"extends": [
{
"type": "InterfaceExtends",
"id": {
"type": "Identifier",
"name": "B",
"range": [
20,
21
],
},
"range": [
0,
24
],
"id": {
"type": "Identifier",
"start": 10,
"end": 11,
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 11
}
},
"range": [
10,
11
],
"name": "A"
},
"typeParameters": null,
"extends": [
{
"type": "InterfaceExtends",
"start": 20,
"end": 21,
"loc": {
"start": {
"line": 1,
@@ -61,39 +89,57 @@
"line": 1,
"column": 21
}
}
},
"typeParameters": null,
"range": [
20,
21
],
},
"range": [
20,
21
],
"id": {
"type": "Identifier",
"start": 20,
"end": 21,
"loc": {
"start": {
"line": 1,
"column": 20
},
"end": {
"line": 1,
"column": 21
}
},
"range": [
20,
21
],
"name": "B"
},
"typeParameters": null
}
],
"body": {
"type": "ObjectTypeAnnotation",
"start": 22,
"end": 24,
"loc": {
"start": {
"line": 1,
"column": 20
"column": 22
},
"end": {
"line": 1,
"column": 21
"column": 24
}
}
}
],
"range": [
0,
24
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 24
},
"range": [
22,
24
],
"callProperties": [],
"properties": [],
"indexers": []
}
}
}
]
]
}
}

View File

@@ -1,93 +1,125 @@
{
"type": "Program",
"body": [
{
"type": "InterfaceDeclaration",
"id": {
"type": "Identifier",
"name": "A",
"range": [
10,
11
],
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 11
}
}
"type": "File",
"start": 0,
"end": 36,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 36
}
},
"range": [
0,
36
],
"program": {
"type": "Program",
"start": 0,
"end": 36,
"loc": {
"start": {
"line": 1,
"column": 0
},
"typeParameters": {
"type": "TypeParameterDeclaration",
"params": [
{
"type": "Identifier",
"name": "T",
"range": [
12,
13
],
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 13
}
}
}
],
"range": [
11,
14
],
"end": {
"line": 1,
"column": 36
}
},
"range": [
0,
36
],
"sourceType": "module",
"body": [
{
"type": "InterfaceDeclaration",
"start": 0,
"end": 36,
"loc": {
"start": {
"line": 1,
"column": 11
},
"end": {
"line": 1,
"column": 14
}
}
},
"body": {
"type": "ObjectTypeAnnotation",
"properties": [],
"indexers": [],
"callProperties": [],
"range": [
34,
36
],
"loc": {
"start": {
"line": 1,
"column": 34
"column": 0
},
"end": {
"line": 1,
"column": 36
}
}
},
"extends": [
{
"type": "InterfaceExtends",
"id": {
"type": "Identifier",
"name": "B",
"range": [
23,
24
],
},
"range": [
0,
36
],
"id": {
"type": "Identifier",
"start": 10,
"end": 11,
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 11
}
},
"range": [
10,
11
],
"name": "A"
},
"typeParameters": {
"type": "TypeParameterDeclaration",
"start": 11,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 11
},
"end": {
"line": 1,
"column": 14
}
},
"range": [
11,
14
],
"params": [
{
"type": "Identifier",
"start": 12,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 13
}
},
"range": [
12,
13
],
"name": "T"
}
]
},
"extends": [
{
"type": "InterfaceExtends",
"start": 23,
"end": 27,
"loc": {
"start": {
"line": 1,
@@ -95,22 +127,56 @@
},
"end": {
"line": 1,
"column": 24
"column": 27
}
}
},
"typeParameters": {
"type": "TypeParameterInstantiation",
"params": [
{
"type": "GenericTypeAnnotation",
"id": {
"type": "Identifier",
"name": "T",
"range": [
25,
26
],
},
"range": [
23,
27
],
"id": {
"type": "Identifier",
"start": 23,
"end": 24,
"loc": {
"start": {
"line": 1,
"column": 23
},
"end": {
"line": 1,
"column": 24
}
},
"range": [
23,
24
],
"name": "B"
},
"typeParameters": {
"type": "TypeParameterInstantiation",
"start": 24,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 27
}
},
"range": [
24,
27
],
"params": [
{
"type": "GenericTypeAnnotation",
"start": 25,
"end": 26,
"loc": {
"start": {
"line": 1,
@@ -120,64 +186,40 @@
"line": 1,
"column": 26
}
}
},
"typeParameters": null,
"range": [
25,
26
],
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 26
"range": [
25,
26
],
"typeParameters": null,
"id": {
"type": "Identifier",
"start": 25,
"end": 26,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 26
}
},
"range": [
25,
26
],
"name": "T"
}
}
}
],
"range": [
24,
27
],
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 27
}
]
}
},
"range": [
23,
27
],
"loc": {
"start": {
"line": 1,
"column": 23
},
"end": {
"line": 1,
"column": 27
}
}
},
{
"type": "InterfaceExtends",
"id": {
"type": "Identifier",
"name": "C",
"range": [
29,
30
],
{
"type": "InterfaceExtends",
"start": 29,
"end": 33,
"loc": {
"start": {
"line": 1,
@@ -185,22 +227,56 @@
},
"end": {
"line": 1,
"column": 30
"column": 33
}
}
},
"typeParameters": {
"type": "TypeParameterInstantiation",
"params": [
{
"type": "GenericTypeAnnotation",
"id": {
"type": "Identifier",
"name": "T",
"range": [
31,
32
],
},
"range": [
29,
33
],
"id": {
"type": "Identifier",
"start": 29,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 29
},
"end": {
"line": 1,
"column": 30
}
},
"range": [
29,
30
],
"name": "C"
},
"typeParameters": {
"type": "TypeParameterInstantiation",
"start": 30,
"end": 33,
"loc": {
"start": {
"line": 1,
"column": 30
},
"end": {
"line": 1,
"column": 33
}
},
"range": [
30,
33
],
"params": [
{
"type": "GenericTypeAnnotation",
"start": 31,
"end": 32,
"loc": {
"start": {
"line": 1,
@@ -210,70 +286,60 @@
"line": 1,
"column": 32
}
}
},
"typeParameters": null,
"range": [
31,
32
],
"loc": {
"start": {
"line": 1,
"column": 31
},
"end": {
"line": 1,
"column": 32
"range": [
31,
32
],
"typeParameters": null,
"id": {
"type": "Identifier",
"start": 31,
"end": 32,
"loc": {
"start": {
"line": 1,
"column": 31
},
"end": {
"line": 1,
"column": 32
}
},
"range": [
31,
32
],
"name": "T"
}
}
}
],
"range": [
30,
33
],
"loc": {
"start": {
"line": 1,
"column": 30
},
"end": {
"line": 1,
"column": 33
}
]
}
},
"range": [
29,
33
],
}
],
"body": {
"type": "ObjectTypeAnnotation",
"start": 34,
"end": 36,
"loc": {
"start": {
"line": 1,
"column": 29
"column": 34
},
"end": {
"line": 1,
"column": 33
"column": 36
}
}
}
],
"range": [
0,
36
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 36
},
"range": [
34,
36
],
"callProperties": [],
"properties": [],
"indexers": []
}
}
}
]
]
}
}

View File

@@ -1,39 +1,105 @@
{
"type": "Program",
"body": [
{
"type": "InterfaceDeclaration",
"id": {
"type": "Identifier",
"name": "A",
"range": [
10,
11
],
"type": "File",
"start": 0,
"end": 34,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 34
}
},
"range": [
0,
34
],
"program": {
"type": "Program",
"start": 0,
"end": 34,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 34
}
},
"range": [
0,
34
],
"sourceType": "module",
"body": [
{
"type": "InterfaceDeclaration",
"start": 0,
"end": 34,
"loc": {
"start": {
"line": 1,
"column": 10
"column": 0
},
"end": {
"line": 1,
"column": 11
"column": 34
}
}
},
"typeParameters": null,
"body": {
"type": "ObjectTypeAnnotation",
"properties": [
{
"type": "ObjectTypeProperty",
"key": {
"type": "Identifier",
"name": "foo",
"range": [
14,
17
],
},
"range": [
0,
34
],
"id": {
"type": "Identifier",
"start": 10,
"end": 11,
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 11
}
},
"range": [
10,
11
],
"name": "A"
},
"typeParameters": null,
"extends": [],
"body": {
"type": "ObjectTypeAnnotation",
"start": 12,
"end": 34,
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 34
}
},
"range": [
12,
34
],
"callProperties": [],
"properties": [
{
"type": "ObjectTypeProperty",
"start": 14,
"end": 32,
"loc": {
"start": {
"line": 1,
@@ -41,95 +107,80 @@
},
"end": {
"line": 1,
"column": 17
"column": 32
}
}
},
"value": {
"type": "FunctionTypeAnnotation",
"params": [],
"returnType": {
"type": "NumberTypeAnnotation",
"range": [
25,
31
],
},
"range": [
14,
32
],
"key": {
"type": "Identifier",
"start": 14,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 25
"column": 14
},
"end": {
"line": 1,
"column": 17
}
},
"range": [
14,
17
],
"name": "foo"
},
"value": {
"type": "FunctionTypeAnnotation",
"start": 19,
"end": 31,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 31
}
}
},
"typeParameters": null,
"range": [
19,
31
],
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 31
}
}
},
"optional": false,
"range": [
14,
32
],
"loc": {
"start": {
"line": 1,
"column": 14
"range": [
19,
31
],
"params": [],
"rest": null,
"returnType": {
"type": "NumberTypeAnnotation",
"start": 25,
"end": 31,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 31
}
},
"range": [
25,
31
]
},
"typeParameters": null
},
"end": {
"line": 1,
"column": 32
}
"optional": false
}
}
],
"indexers": [],
"callProperties": [],
"range": [
12,
34
],
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 34
}
}
},
"extends": [],
"range": [
0,
34
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 34
],
"indexers": []
}
}
}
]
]
}
}

View File

@@ -1,39 +1,105 @@
{
"type": "Program",
"body": [
{
"type": "InterfaceDeclaration",
"id": {
"type": "Identifier",
"name": "Dictionary",
"range": [
10,
20
],
"type": "File",
"start": 0,
"end": 65,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 65
}
},
"range": [
0,
65
],
"program": {
"type": "Program",
"start": 0,
"end": 65,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 65
}
},
"range": [
0,
65
],
"sourceType": "module",
"body": [
{
"type": "InterfaceDeclaration",
"start": 0,
"end": 65,
"loc": {
"start": {
"line": 1,
"column": 10
"column": 0
},
"end": {
"line": 1,
"column": 20
"column": 65
}
}
},
"typeParameters": null,
"body": {
"type": "ObjectTypeAnnotation",
"properties": [
{
"type": "ObjectTypeProperty",
"key": {
"type": "Identifier",
"name": "length",
"range": [
48,
54
],
},
"range": [
0,
65
],
"id": {
"type": "Identifier",
"start": 10,
"end": 20,
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 20
}
},
"range": [
10,
20
],
"name": "Dictionary"
},
"typeParameters": null,
"extends": [],
"body": {
"type": "ObjectTypeAnnotation",
"start": 21,
"end": 65,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 65
}
},
"range": [
21,
65
],
"callProperties": [],
"properties": [
{
"type": "ObjectTypeProperty",
"start": 48,
"end": 63,
"loc": {
"start": {
"line": 1,
@@ -41,146 +107,136 @@
},
"end": {
"line": 1,
"column": 54
"column": 63
}
}
},
"value": {
"type": "NumberTypeAnnotation",
},
"range": [
56,
62
48,
63
],
"key": {
"type": "Identifier",
"start": 48,
"end": 54,
"loc": {
"start": {
"line": 1,
"column": 48
},
"end": {
"line": 1,
"column": 54
}
},
"range": [
48,
54
],
"name": "length"
},
"value": {
"type": "NumberTypeAnnotation",
"start": 56,
"end": 62,
"loc": {
"start": {
"line": 1,
"column": 56
},
"end": {
"line": 1,
"column": 62
}
},
"range": [
56,
62
]
},
"optional": false
}
],
"indexers": [
{
"type": "ObjectTypeIndexer",
"start": 23,
"end": 47,
"loc": {
"start": {
"line": 1,
"column": 56
"column": 23
},
"end": {
"line": 1,
"column": 62
"column": 47
}
}
},
"optional": false,
"range": [
48,
63
],
"loc": {
"start": {
"line": 1,
"column": 48
},
"end": {
"line": 1,
"column": 63
"range": [
23,
47
],
"id": {
"type": "Identifier",
"start": 24,
"end": 29,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 29
}
},
"range": [
24,
29
],
"name": "index"
},
"key": {
"type": "StringTypeAnnotation",
"start": 31,
"end": 37,
"loc": {
"start": {
"line": 1,
"column": 31
},
"end": {
"line": 1,
"column": 37
}
},
"range": [
31,
37
]
},
"value": {
"type": "StringTypeAnnotation",
"start": 40,
"end": 46,
"loc": {
"start": {
"line": 1,
"column": 40
},
"end": {
"line": 1,
"column": 46
}
},
"range": [
40,
46
]
}
}
}
],
"indexers": [
{
"type": "ObjectTypeIndexer",
"id": {
"type": "Identifier",
"name": "index",
"range": [
24,
29
],
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 29
}
}
},
"key": {
"type": "StringTypeAnnotation",
"range": [
31,
37
],
"loc": {
"start": {
"line": 1,
"column": 31
},
"end": {
"line": 1,
"column": 37
}
}
},
"value": {
"type": "StringTypeAnnotation",
"range": [
40,
46
],
"loc": {
"start": {
"line": 1,
"column": 40
},
"end": {
"line": 1,
"column": 46
}
}
},
"range": [
23,
47
],
"loc": {
"start": {
"line": 1,
"column": 23
},
"end": {
"line": 1,
"column": 47
}
}
}
],
"callProperties": [],
"range": [
21,
65
],
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 65
}
}
},
"extends": [],
"range": [
0,
65
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 65
]
}
}
}
]
]
}
}

View File

@@ -1,55 +1,85 @@
{
"type": "Program",
"body": [
{
"type": "ClassDeclaration",
"id": {
"type": "Identifier",
"name": "Foo",
"range": [
6,
9
],
"loc": {
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 9
}
}
"type": "File",
"start": 0,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 27
}
},
"range": [
0,
27
],
"program": {
"type": "Program",
"start": 0,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 0
},
"superClass": null,
"body": {
"type": "ClassBody",
"body": [],
"range": [
25,
27
],
"end": {
"line": 1,
"column": 27
}
},
"range": [
0,
27
],
"sourceType": "module",
"body": [
{
"type": "ClassDeclaration",
"start": 0,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 25
"column": 0
},
"end": {
"line": 1,
"column": 27
}
}
},
"implements": [
{
"type": "ClassImplements",
"id": {
"type": "Identifier",
"name": "Bar",
"range": [
21,
24
],
},
"range": [
0,
27
],
"id": {
"type": "Identifier",
"start": 6,
"end": 9,
"loc": {
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 9
}
},
"range": [
6,
9
],
"name": "Foo"
},
"superClass": null,
"implements": [
{
"type": "ClassImplements",
"start": 21,
"end": 24,
"loc": {
"start": {
"line": 1,
@@ -59,39 +89,55 @@
"line": 1,
"column": 24
}
}
},
"typeParameters": null,
"range": [
21,
24
],
},
"range": [
21,
24
],
"id": {
"type": "Identifier",
"start": 21,
"end": 24,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 24
}
},
"range": [
21,
24
],
"name": "Bar"
},
"typeParameters": null
}
],
"body": {
"type": "ClassBody",
"start": 25,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 21
"column": 25
},
"end": {
"line": 1,
"column": 24
"column": 27
}
}
}
],
"range": [
0,
27
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 27
},
"range": [
25,
27
],
"body": []
}
}
}
]
]
}
}

View File

@@ -1,72 +1,104 @@
{
"type": "Program",
"body": [
{
"type": "ClassDeclaration",
"id": {
"type": "Identifier",
"name": "Foo",
"range": [
6,
9
],
"loc": {
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 9
}
}
"type": "File",
"start": 0,
"end": 52,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 52
}
},
"range": [
0,
52
],
"program": {
"type": "Program",
"start": 0,
"end": 52,
"loc": {
"start": {
"line": 1,
"column": 0
},
"superClass": {
"type": "Identifier",
"name": "Bar",
"range": [
18,
21
],
"end": {
"line": 1,
"column": 52
}
},
"range": [
0,
52
],
"sourceType": "module",
"body": [
{
"type": "ClassDeclaration",
"start": 0,
"end": 52,
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 21
}
}
},
"body": {
"type": "ClassBody",
"body": [],
"range": [
50,
52
],
"loc": {
"start": {
"line": 1,
"column": 50
"column": 0
},
"end": {
"line": 1,
"column": 52
}
}
},
"implements": [
{
"type": "ClassImplements",
"id": {
"type": "Identifier",
"name": "Bat",
"range": [
33,
36
],
},
"range": [
0,
52
],
"id": {
"type": "Identifier",
"start": 6,
"end": 9,
"loc": {
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 9
}
},
"range": [
6,
9
],
"name": "Foo"
},
"superClass": {
"type": "Identifier",
"start": 18,
"end": 21,
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 21
}
},
"range": [
18,
21
],
"name": "Bar"
},
"implements": [
{
"type": "ClassImplements",
"start": 33,
"end": 36,
"loc": {
"start": {
"line": 1,
@@ -76,110 +108,134 @@
"line": 1,
"column": 36
}
}
},
"typeParameters": null,
"range": [
33,
36
],
"loc": {
"start": {
"line": 1,
"column": 33
},
"end": {
"line": 1,
"column": 36
}
}
},
{
"type": "ClassImplements",
"id": {
"type": "Identifier",
"name": "Man",
"range": [
38,
41
33,
36
],
"id": {
"type": "Identifier",
"start": 33,
"end": 36,
"loc": {
"start": {
"line": 1,
"column": 33
},
"end": {
"line": 1,
"column": 36
}
},
"range": [
33,
36
],
"name": "Bat"
},
"typeParameters": null
},
{
"type": "ClassImplements",
"start": 38,
"end": 49,
"loc": {
"start": {
"line": 1,
"column": 38
},
"end": {
"line": 1,
"column": 41
}
}
},
"typeParameters": {
"type": "TypeParameterInstantiation",
"params": [
{
"type": "NumberTypeAnnotation",
"range": [
42,
48
],
"loc": {
"start": {
"line": 1,
"column": 42
},
"end": {
"line": 1,
"column": 48
}
}
}
],
"range": [
41,
49
],
"loc": {
"start": {
"line": 1,
"column": 41
},
"end": {
"line": 1,
"column": 49
}
},
"range": [
38,
49
],
"id": {
"type": "Identifier",
"start": 38,
"end": 41,
"loc": {
"start": {
"line": 1,
"column": 38
},
"end": {
"line": 1,
"column": 41
}
},
"range": [
38,
41
],
"name": "Man"
},
"typeParameters": {
"type": "TypeParameterInstantiation",
"start": 41,
"end": 49,
"loc": {
"start": {
"line": 1,
"column": 41
},
"end": {
"line": 1,
"column": 49
}
},
"range": [
41,
49
],
"params": [
{
"type": "NumberTypeAnnotation",
"start": 42,
"end": 48,
"loc": {
"start": {
"line": 1,
"column": 42
},
"end": {
"line": 1,
"column": 48
}
},
"range": [
42,
48
]
}
]
}
},
"range": [
38,
49
],
}
],
"body": {
"type": "ClassBody",
"start": 50,
"end": 52,
"loc": {
"start": {
"line": 1,
"column": 38
"column": 50
},
"end": {
"line": 1,
"column": 49
"column": 52
}
}
}
],
"range": [
0,
52
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 52
},
"range": [
50,
52
],
"body": []
}
}
}
]
]
}
}

View File

@@ -1,75 +1,123 @@
{
"type": "Program",
"body": [
{
"type": "ClassDeclaration",
"id": {
"type": "Identifier",
"name": "Foo",
"range": [
6,
9
],
"type": "File",
"start": 0,
"end": 48,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 48
}
},
"range": [
0,
48
],
"program": {
"type": "Program",
"start": 0,
"end": 48,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 48
}
},
"range": [
0,
48
],
"sourceType": "module",
"body": [
{
"type": "ClassDeclaration",
"start": 0,
"end": 48,
"loc": {
"start": {
"line": 1,
"column": 6
"column": 0
},
"end": {
"line": 1,
"column": 9
"column": 48
}
}
},
"superClass": {
"type": "ClassExpression",
},
"range": [
0,
48
],
"id": {
"type": "Identifier",
"name": "Bar",
"range": [
24,
27
],
"start": 6,
"end": 9,
"loc": {
"start": {
"line": 1,
"column": 24
"column": 6
},
"end": {
"line": 1,
"column": 27
"column": 9
}
}
},
"superClass": null,
"body": {
"type": "ClassBody",
"body": [],
},
"range": [
43,
45
6,
9
],
"name": "Foo"
},
"superClass": {
"type": "ClassExpression",
"start": 18,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 43
"column": 18
},
"end": {
"line": 1,
"column": 45
}
}
},
"implements": [
{
"type": "ClassImplements",
"id": {
"type": "Identifier",
"name": "Bat",
"range": [
39,
42
],
},
"range": [
18,
45
],
"id": {
"type": "Identifier",
"start": 24,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 27
}
},
"range": [
24,
27
],
"name": "Bar"
},
"superClass": null,
"implements": [
{
"type": "ClassImplements",
"start": 39,
"end": 42,
"loc": {
"start": {
"line": 1,
@@ -79,72 +127,76 @@
"line": 1,
"column": 42
}
}
},
"typeParameters": null,
"range": [
39,
42
],
},
"range": [
39,
42
],
"id": {
"type": "Identifier",
"start": 39,
"end": 42,
"loc": {
"start": {
"line": 1,
"column": 39
},
"end": {
"line": 1,
"column": 42
}
},
"range": [
39,
42
],
"name": "Bat"
},
"typeParameters": null
}
],
"body": {
"type": "ClassBody",
"start": 43,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 39
"column": 43
},
"end": {
"line": 1,
"column": 42
"column": 45
}
}
},
"range": [
43,
45
],
"body": []
}
],
"range": [
18,
45
],
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 45
}
}
},
"body": {
"type": "ClassBody",
"body": [],
"range": [
46,
48
],
"loc": {
"start": {
"line": 1,
"column": 46
},
"end": {
"line": 1,
"column": 48
}
}
},
"range": [
0,
48
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 48
"body": {
"type": "ClassBody",
"start": 46,
"end": 48,
"loc": {
"start": {
"line": 1,
"column": 46
},
"end": {
"line": 1,
"column": 48
}
},
"range": [
46,
48
],
"body": []
}
}
}
]
]
}
}

View File

@@ -1,75 +1,123 @@
{
"type": "Program",
"body": [
{
"type": "ClassDeclaration",
"id": {
"type": "Identifier",
"name": "Foo",
"range": [
6,
9
],
"type": "File",
"start": 0,
"end": 63,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 63
}
},
"range": [
0,
63
],
"program": {
"type": "Program",
"start": 0,
"end": 63,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 63
}
},
"range": [
0,
63
],
"sourceType": "module",
"body": [
{
"type": "ClassDeclaration",
"start": 0,
"end": 63,
"loc": {
"start": {
"line": 1,
"column": 6
"column": 0
},
"end": {
"line": 1,
"column": 9
"column": 63
}
}
},
"superClass": {
"type": "ClassExpression",
},
"range": [
0,
63
],
"id": {
"type": "Identifier",
"name": "Bar",
"range": [
24,
27
],
"start": 6,
"end": 9,
"loc": {
"start": {
"line": 1,
"column": 24
"column": 6
},
"end": {
"line": 1,
"column": 27
"column": 9
}
}
},
"superClass": null,
"body": {
"type": "ClassBody",
"body": [],
},
"range": [
43,
45
6,
9
],
"name": "Foo"
},
"superClass": {
"type": "ClassExpression",
"start": 18,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 43
"column": 18
},
"end": {
"line": 1,
"column": 45
}
}
},
"implements": [
{
"type": "ClassImplements",
"id": {
"type": "Identifier",
"name": "Bat",
"range": [
39,
42
],
},
"range": [
18,
45
],
"id": {
"type": "Identifier",
"start": 24,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 27
}
},
"range": [
24,
27
],
"name": "Bar"
},
"superClass": null,
"implements": [
{
"type": "ClassImplements",
"start": 39,
"end": 42,
"loc": {
"start": {
"line": 1,
@@ -79,68 +127,60 @@
"line": 1,
"column": 42
}
}
},
"typeParameters": null,
"range": [
39,
42
],
},
"range": [
39,
42
],
"id": {
"type": "Identifier",
"start": 39,
"end": 42,
"loc": {
"start": {
"line": 1,
"column": 39
},
"end": {
"line": 1,
"column": 42
}
},
"range": [
39,
42
],
"name": "Bat"
},
"typeParameters": null
}
],
"body": {
"type": "ClassBody",
"start": 43,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 39
"column": 43
},
"end": {
"line": 1,
"column": 42
"column": 45
}
}
}
],
"range": [
18,
45
],
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 45
}
}
},
"body": {
"type": "ClassBody",
"body": [],
"range": [
61,
63
],
"loc": {
"start": {
"line": 1,
"column": 61
},
"end": {
"line": 1,
"column": 63
}
}
},
"implements": [
{
"type": "ClassImplements",
"id": {
"type": "Identifier",
"name": "Man",
},
"range": [
57,
60
43,
45
],
"body": []
}
},
"implements": [
{
"type": "ClassImplements",
"start": 57,
"end": 60,
"loc": {
"start": {
"line": 1,
@@ -150,39 +190,55 @@
"line": 1,
"column": 60
}
}
},
"typeParameters": null,
"range": [
57,
60
],
},
"range": [
57,
60
],
"id": {
"type": "Identifier",
"start": 57,
"end": 60,
"loc": {
"start": {
"line": 1,
"column": 57
},
"end": {
"line": 1,
"column": 60
}
},
"range": [
57,
60
],
"name": "Man"
},
"typeParameters": null
}
],
"body": {
"type": "ClassBody",
"start": 61,
"end": 63,
"loc": {
"start": {
"line": 1,
"column": 57
"column": 61
},
"end": {
"line": 1,
"column": 60
"column": 63
}
}
}
],
"range": [
0,
63
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 63
},
"range": [
61,
63
],
"body": []
}
}
}
]
]
}
}