Skip to content

Commit 2ecd19b

Browse files
committed
chore: update test snapshot
1 parent 010266b commit 2ecd19b

File tree

3 files changed

+26
-40
lines changed

3 files changed

+26
-40
lines changed

src/ast/__snapshots__/ast_test.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ ast.File{
8282
{
8383
BaseDeclaration: ast.BaseDeclaration{
8484
LeadingComments: {
85-
{Value:" dsdas\n"},
8685
},
8786
TrailingComments: {
8887
},

src/generator/__snapshots__/generator_test.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
[TestNormal - 1]
33
namespace some {
44
export enum Sex {
5-
// dsdas
65
Female = 'female',
76
Male = 'male', //hhh
87

src/token/__snapshots__/token_test.snap

Lines changed: 26 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -133,95 +133,83 @@
133133
Start: {14, 9},
134134
End: {14, 14},
135135
},
136-
{
137-
Value: " das\n",
138-
Type: "LineComment",
139-
Start: {16, 1},
140-
End: {16, 6},
141-
},
142136
{
143137
Value: "const",
144138
Type: "Const",
145-
Start: {17, 0},
146-
End: {17, 5},
139+
Start: {16, 0},
140+
End: {16, 5},
147141
},
148142
{
149143
Value: "(",
150144
Type: "LeftParentheses",
151-
Start: {17, 6},
152-
End: {17, 6},
153-
},
154-
{
155-
Value: " dsdas\n",
156-
Type: "LineComment",
157-
Start: {17, 9},
158-
End: {17, 16},
145+
Start: {16, 6},
146+
End: {16, 6},
159147
},
160148
{
161149
Value: "Female",
162150
Type: "Identifier",
163-
Start: {18, 1},
164-
End: {18, 6},
151+
Start: {17, 1},
152+
End: {17, 6},
165153
},
166154
{
167155
Value: "Sex",
168156
Type: "Identifier",
169-
Start: {18, 8},
170-
End: {18, 10},
157+
Start: {17, 8},
158+
End: {17, 10},
171159
},
172160
{
173161
Value: "=",
174162
Type: "Assignment",
175-
Start: {18, 12},
176-
End: {18, 12},
163+
Start: {17, 12},
164+
End: {17, 12},
177165
},
178166
{
179167
Value: "female",
180168
Type: "StringValue",
181-
Start: {18, 14},
182-
End: {18, 21},
169+
Start: {17, 14},
170+
End: {17, 21},
183171
},
184172
{
185173
Value: "Male",
186174
Type: "Identifier",
187-
Start: {19, 1},
188-
End: {19, 4},
175+
Start: {18, 1},
176+
End: {18, 4},
189177
},
190178
{
191179
Value: "Sex",
192180
Type: "Identifier",
193-
Start: {19, 8},
194-
End: {19, 10},
181+
Start: {18, 8},
182+
End: {18, 10},
195183
},
196184
{
197185
Value: "=",
198186
Type: "Assignment",
199-
Start: {19, 12},
200-
End: {19, 12},
187+
Start: {18, 12},
188+
End: {18, 12},
201189
},
202190
{
203191
Value: "male",
204192
Type: "StringValue",
205-
Start: {19, 14},
206-
End: {19, 19},
193+
Start: {18, 14},
194+
End: {18, 19},
207195
},
208196
{
209197
Value: "hhh\n",
210198
Type: "LineComment",
211-
Start: {19, 22},
212-
End: {19, 26},
199+
Start: {18, 22},
200+
End: {18, 26},
213201
},
214202
{
215203
Value: ")",
216204
Type: "RightParentheses",
217-
Start: {20, 0},
218-
End: {20, 0},
205+
Start: {19, 0},
206+
End: {19, 0},
219207
},
220208
{
221209
Value: "func Abctext() {\n\t//dadsad\n}\n",
222210
Type: "Unknown",
223-
Start: {22, 0},
224-
End: {24, 1},
211+
Start: {21, 0},
212+
End: {23, 1},
225213
},
226214
}
227215
---

0 commit comments

Comments
 (0)