@@ -31,11 +31,9 @@ export default function Form() {
31
31
["keyword", "function"],
32
32
["function", "Add1"],
33
33
["punctuation", "("],
34
- ["parameter", [
35
- "a",
36
- ["punctuation", ","],
37
- " b"
38
- ]],
34
+ "a",
35
+ ["punctuation", ","],
36
+ " b",
39
37
["punctuation", ")"],
40
38
["punctuation", "{"],
41
39
["keyword", "return"],
@@ -57,9 +55,7 @@ export default function Form() {
57
55
["punctuation", "}"],
58
56
59
57
["keyword", "type"],
60
- ["class-name", [
61
- "Bar"
62
- ]],
58
+ ["class-name", ["Bar"]],
63
59
["operator", "="],
64
60
" Foo",
65
61
["operator", "<"],
@@ -70,11 +66,9 @@ export default function Form() {
70
66
["keyword", "function"],
71
67
["function", "Add2"],
72
68
["punctuation", "("],
73
- ["parameter", [
74
- "a",
75
- ["punctuation", ","],
76
- " b"
77
- ]],
69
+ "a",
70
+ ["punctuation", ","],
71
+ " b",
78
72
["punctuation", ")"],
79
73
["punctuation", "{"],
80
74
["keyword", "return"],
@@ -98,37 +92,36 @@ export default function Form() {
98
92
["keyword", "function"],
99
93
["function", "handleSubmit"],
100
94
["punctuation", "("],
101
- ["parameter", [
102
- "event",
103
- ["operator", ":"],
104
- " FormEvent",
105
- ["operator", "<"],
106
- "HTMLFormElement",
107
- ["operator", ">"]
108
- ]],
95
+ "event",
96
+ ["operator", ":"],
97
+ " FormEvent",
98
+ ["operator", "<"],
99
+ "HTMLFormElement",
100
+ ["operator", ">"],
109
101
["punctuation", ")"],
110
102
["punctuation", "{"],
103
+
111
104
"\r\n event",
112
105
["punctuation", "."],
113
106
["function", "preventDefault"],
114
107
["punctuation", "("],
115
108
["punctuation", ")"],
116
109
["punctuation", ";"],
110
+
117
111
["punctuation", "}"],
118
112
119
113
["keyword", "function"],
120
114
["function", "handleChange"],
121
115
["punctuation", "("],
122
- ["parameter", [
123
- "event",
124
- ["operator", ":"],
125
- " ChangeEvent",
126
- ["operator", "<"],
127
- "HTMLInputElement",
128
- ["operator", ">"]
129
- ]],
116
+ "event",
117
+ ["operator", ":"],
118
+ " ChangeEvent",
119
+ ["operator", "<"],
120
+ "HTMLInputElement",
121
+ ["operator", ">"],
130
122
["punctuation", ")"],
131
123
["punctuation", "{"],
124
+
132
125
["builtin", "console"],
133
126
["punctuation", "."],
134
127
["function", "log"],
@@ -140,18 +133,18 @@ export default function Form() {
140
133
"value",
141
134
["punctuation", ")"],
142
135
["punctuation", ";"],
136
+
143
137
["punctuation", "}"],
144
138
145
139
["keyword", "function"],
146
140
["function", "handleClick"],
147
141
["punctuation", "("],
148
- ["parameter", [
149
- "event",
150
- ["operator", ":"],
151
- " MouseEvent"
152
- ]],
142
+ "event",
143
+ ["operator", ":"],
144
+ " MouseEvent",
153
145
["punctuation", ")"],
154
146
["punctuation", "{"],
147
+
155
148
["builtin", "console"],
156
149
["punctuation", "."],
157
150
["function", "log"],
@@ -161,6 +154,7 @@ export default function Form() {
161
154
"button",
162
155
["punctuation", ")"],
163
156
["punctuation", ";"],
157
+
164
158
["punctuation", "}"],
165
159
166
160
["keyword", "export"],
@@ -170,16 +164,16 @@ export default function Form() {
170
164
["punctuation", "("],
171
165
["punctuation", ")"],
172
166
["punctuation", "{"],
167
+
173
168
["keyword", "return"],
174
169
["punctuation", "("],
170
+
175
171
["tag", [
176
172
["tag", [
177
173
["punctuation", "<"],
178
174
"form"
179
175
]],
180
- ["attr-name", [
181
- "onSubmit"
182
- ]],
176
+ ["attr-name", ["onSubmit"]],
183
177
["script", [
184
178
["script-punctuation", "="],
185
179
["punctuation", "{"],
@@ -194,18 +188,14 @@ export default function Form() {
194
188
["punctuation", "<"],
195
189
"input"
196
190
]],
197
- ["attr-name", [
198
- "onChange"
199
- ]],
191
+ ["attr-name", ["onChange"]],
200
192
["script", [
201
193
["script-punctuation", "="],
202
194
["punctuation", "{"],
203
195
"handleChange",
204
196
["punctuation", "}"]
205
197
]],
206
- ["attr-name", [
207
- "placeholder"
208
- ]],
198
+ ["attr-name", ["placeholder"]],
209
199
["attr-value", [
210
200
["punctuation", "="],
211
201
["punctuation", "\""],
@@ -220,9 +210,7 @@ export default function Form() {
220
210
["punctuation", "<"],
221
211
"button"
222
212
]],
223
- ["attr-name", [
224
- "onClick"
225
- ]],
213
+ ["attr-name", ["onClick"]],
226
214
["script", [
227
215
["script-punctuation", "="],
228
216
["punctuation", "{"],
@@ -246,7 +234,9 @@ export default function Form() {
246
234
]],
247
235
["punctuation", ">"]
248
236
]],
237
+
249
238
["punctuation", ")"],
250
239
["punctuation", ";"],
240
+
251
241
["punctuation", "}"]
252
- ]
242
+ ]
0 commit comments