Skip to content

Commit 735ce08

Browse files
authored
Merge pull request microsoft#378 from TysonAndre/update-syntax-visualizer
Update example ast output to latest version's output
2 parents a60544e + ca842b4 commit 735ce08

File tree

1 file changed

+150
-153
lines changed

1 file changed

+150
-153
lines changed
Lines changed: 150 additions & 153 deletions
Original file line numberDiff line numberDiff line change
@@ -1,180 +1,177 @@
11
{
22
"SourceFileNode": {
3-
"scriptSectionList": [
3+
"statementList": [
44
{
5-
"ScriptSection": {
6-
"text": {
7-
"kind": "ScriptSectionPrependedText",
8-
"fullStart": 0,
9-
"start": 0,
10-
"length": 0
11-
},
12-
"startTag": {
5+
"InlineHtml": {
6+
"scriptSectionEndTag": null,
7+
"text": null,
8+
"scriptSectionStartTag": {
139
"kind": "ScriptSectionStartTag",
1410
"fullStart": 0,
1511
"start": 0,
1612
"length": 6
13+
}
14+
}
15+
},
16+
{
17+
"ClassDeclaration": {
18+
"attributes": null,
19+
"abstractOrFinalModifier": null,
20+
"modifiers": [],
21+
"classKeyword": {
22+
"kind": "ClassKeyword",
23+
"fullStart": 6,
24+
"start": 21,
25+
"length": 20
1726
},
18-
"statementList": [
19-
{
20-
"ClassNode": {
21-
"abstractOrFinalModifier": null,
22-
"classKeyword": {
23-
"kind": "ClassKeyword",
24-
"fullStart": 6,
25-
"start": 24,
26-
"length": 23
27-
},
28-
"name": {
29-
"error": "MissingToken",
30-
"kind": "Name",
31-
"fullStart": 29,
32-
"start": 29,
33-
"length": 0
34-
},
35-
"classBaseClause": null,
36-
"classInterfaceClause": null,
37-
"classMembers": {
38-
"ClassMembersNode": {
39-
"openBrace": {
40-
"kind": "OpenBraceToken",
41-
"fullStart": 29,
42-
"start": 30,
27+
"name": {
28+
"error": "MissingToken",
29+
"kind": "Name",
30+
"fullStart": 26,
31+
"start": 26,
32+
"length": 0
33+
},
34+
"classBaseClause": null,
35+
"classInterfaceClause": null,
36+
"classMembers": {
37+
"ClassMembersNode": {
38+
"openBrace": {
39+
"kind": "OpenBraceToken",
40+
"fullStart": 26,
41+
"start": 27,
42+
"length": 2
43+
},
44+
"classMemberDeclarations": [
45+
{
46+
"MethodDeclaration": {
47+
"attributes": null,
48+
"modifiers": [],
49+
"functionKeyword": {
50+
"kind": "FunctionKeyword",
51+
"fullStart": 28,
52+
"start": 33,
53+
"length": 13
54+
},
55+
"byRefToken": null,
56+
"name": {
57+
"kind": "Name",
58+
"fullStart": 41,
59+
"start": 42,
4360
"length": 2
4461
},
45-
"classMemberDeclarations": [
46-
{
47-
"MethodNode": {
48-
"modifiers": [],
49-
"functionKeyword": {
50-
"kind": "FunctionKeyword",
51-
"fullStart": 31,
52-
"start": 37,
53-
"length": 14
54-
},
55-
"byRefToken": null,
56-
"name": {
57-
"kind": "Name",
58-
"fullStart": 45,
59-
"start": 46,
60-
"length": 2
61-
},
62-
"openParen": {
63-
"kind": "OpenParenToken",
64-
"fullStart": 47,
65-
"start": 48,
66-
"length": 2
67-
},
68-
"parameters": null,
69-
"closeParen": {
70-
"kind": "CloseParenToken",
71-
"fullStart": 49,
72-
"start": 49,
73-
"length": 1
74-
},
75-
"colonToken": null,
76-
"returnType": null,
77-
"compoundStatementOrSemicolon": {
78-
"CompoundStatementNode": {
79-
"children": [
80-
{
81-
"kind": "OpenBraceToken",
82-
"fullStart": 50,
83-
"start": 51,
84-
"length": 2
85-
},
86-
{
87-
"error": "MissingToken",
88-
"kind": "CloseBraceToken",
89-
"fullStart": 52,
90-
"start": 52,
91-
"length": 0
92-
}
93-
]
94-
}
95-
}
62+
"openParen": {
63+
"kind": "OpenParenToken",
64+
"fullStart": 43,
65+
"start": 44,
66+
"length": 2
67+
},
68+
"parameters": null,
69+
"closeParen": {
70+
"kind": "CloseParenToken",
71+
"fullStart": 45,
72+
"start": 45,
73+
"length": 1
74+
},
75+
"colonToken": null,
76+
"questionToken": null,
77+
"returnTypeList": null,
78+
"compoundStatementOrSemicolon": {
79+
"CompoundStatementNode": {
80+
"openBrace": {
81+
"kind": "OpenBraceToken",
82+
"fullStart": 46,
83+
"start": 47,
84+
"length": 2
85+
},
86+
"statements": [],
87+
"closeBrace": {
88+
"error": "MissingToken",
89+
"kind": "CloseBraceToken",
90+
"fullStart": 48,
91+
"start": 48,
92+
"length": 0
9693
}
97-
},
94+
}
95+
}
96+
}
97+
},
98+
{
99+
"MethodDeclaration": {
100+
"attributes": null,
101+
"modifiers": [
98102
{
99-
"MethodNode": {
100-
"modifiers": [
101-
{
102-
"kind": "PublicKeyword",
103-
"fullStart": 52,
104-
"start": 60,
105-
"length": 14
106-
}
107-
],
108-
"functionKeyword": {
109-
"kind": "FunctionKeyword",
110-
"fullStart": 66,
111-
"start": 67,
112-
"length": 9
113-
},
114-
"byRefToken": null,
115-
"name": {
116-
"kind": "Name",
117-
"fullStart": 75,
118-
"start": 76,
119-
"length": 2
120-
},
121-
"openParen": {
122-
"kind": "OpenParenToken",
123-
"fullStart": 77,
124-
"start": 78,
125-
"length": 2
126-
},
127-
"parameters": null,
128-
"closeParen": {
129-
"kind": "CloseParenToken",
130-
"fullStart": 79,
131-
"start": 79,
132-
"length": 1
133-
},
134-
"colonToken": null,
135-
"returnType": null,
136-
"compoundStatementOrSemicolon": {
137-
"CompoundStatementNode": {
138-
"children": [
139-
{
140-
"kind": "OpenBraceToken",
141-
"fullStart": 80,
142-
"start": 81,
143-
"length": 2
144-
},
145-
{
146-
"kind": "CloseBraceToken",
147-
"fullStart": 82,
148-
"start": 83,
149-
"length": 2
150-
}
151-
]
152-
}
153-
}
154-
}
103+
"kind": "PublicKeyword",
104+
"fullStart": 48,
105+
"start": 54,
106+
"length": 12
155107
}
156108
],
157-
"closeBrace": {
158-
"error": "MissingToken",
159-
"kind": "CloseBraceToken",
160-
"fullStart": 84,
161-
"start": 84,
162-
"length": 0
109+
"functionKeyword": {
110+
"kind": "FunctionKeyword",
111+
"fullStart": 60,
112+
"start": 61,
113+
"length": 9
114+
},
115+
"byRefToken": null,
116+
"name": {
117+
"kind": "Name",
118+
"fullStart": 69,
119+
"start": 70,
120+
"length": 2
121+
},
122+
"openParen": {
123+
"kind": "OpenParenToken",
124+
"fullStart": 71,
125+
"start": 72,
126+
"length": 2
127+
},
128+
"parameters": null,
129+
"closeParen": {
130+
"kind": "CloseParenToken",
131+
"fullStart": 73,
132+
"start": 73,
133+
"length": 1
134+
},
135+
"colonToken": null,
136+
"questionToken": null,
137+
"returnTypeList": null,
138+
"compoundStatementOrSemicolon": {
139+
"CompoundStatementNode": {
140+
"openBrace": {
141+
"kind": "OpenBraceToken",
142+
"fullStart": 74,
143+
"start": 75,
144+
"length": 2
145+
},
146+
"statements": [],
147+
"closeBrace": {
148+
"kind": "CloseBraceToken",
149+
"fullStart": 76,
150+
"start": 77,
151+
"length": 2
152+
}
153+
}
163154
}
164155
}
165156
}
157+
],
158+
"closeBrace": {
159+
"error": "MissingToken",
160+
"kind": "CloseBraceToken",
161+
"fullStart": 78,
162+
"start": 78,
163+
"length": 0
166164
}
167165
}
168-
],
169-
"endTag": null
166+
}
170167
}
171168
}
172169
],
173170
"endOfFileToken": {
174171
"kind": "EndOfFileToken",
175-
"fullStart": 84,
176-
"start": 86,
177-
"length": 2
172+
"fullStart": 78,
173+
"start": 79,
174+
"length": 1
178175
}
179176
}
180177
}

0 commit comments

Comments
 (0)