|
36 | 36 | {"type":"TextWhitespace","value":" "}, |
37 | 37 | {"type":"Keyword","value":"fn"}, |
38 | 38 | {"type":"TextWhitespace","value":" "}, |
39 | | - {"type":"Name","value":"once"}, |
| 39 | + {"type":"NameFunction","value":"once"}, |
40 | 40 | {"type":"Punctuation","value":"("}, |
41 | 41 | {"type":"KeywordReserved","value":"comptime"}, |
42 | 42 | {"type":"TextWhitespace","value":" "}, |
|
50 | 50 | {"type":"KeywordType","value":"void"}, |
51 | 51 | {"type":"Punctuation","value":")"}, |
52 | 52 | {"type":"TextWhitespace","value":" "}, |
53 | | - {"type":"Name","value":"Once"}, |
| 53 | + {"type":"NameFunction","value":"Once"}, |
54 | 54 | {"type":"Punctuation","value":"("}, |
55 | 55 | {"type":"Name","value":"f"}, |
56 | 56 | {"type":"Punctuation","value":")"}, |
|
59 | 59 | {"type":"TextWhitespace","value":"\n "}, |
60 | 60 | {"type":"Keyword","value":"return"}, |
61 | 61 | {"type":"TextWhitespace","value":" "}, |
62 | | - {"type":"Name","value":"Once"}, |
| 62 | + {"type":"NameFunction","value":"Once"}, |
63 | 63 | {"type":"Punctuation","value":"("}, |
64 | 64 | {"type":"Name","value":"f"}, |
65 | 65 | {"type":"Punctuation","value":"){};"}, |
|
71 | 71 | {"type":"TextWhitespace","value":" "}, |
72 | 72 | {"type":"Keyword","value":"fn"}, |
73 | 73 | {"type":"TextWhitespace","value":" "}, |
74 | | - {"type":"Name","value":"Once"}, |
| 74 | + {"type":"NameFunction","value":"Once"}, |
75 | 75 | {"type":"Punctuation","value":"("}, |
76 | 76 | {"type":"KeywordReserved","value":"comptime"}, |
77 | 77 | {"type":"TextWhitespace","value":" "}, |
|
118 | 118 | {"type":"Punctuation","value":"."}, |
119 | 119 | {"type":"Name","value":"Mutex"}, |
120 | 120 | {"type":"Punctuation","value":"."}, |
121 | | - {"type":"Name","value":"init"}, |
| 121 | + {"type":"NameFunction","value":"init"}, |
122 | 122 | {"type":"Punctuation","value":"(),"}, |
123 | 123 | {"type":"TextWhitespace","value":"\n\n "}, |
124 | 124 | {"type":"CommentSingle","value":"/// Call the function `f`.\n"}, |
|
133 | 133 | {"type":"TextWhitespace","value":" "}, |
134 | 134 | {"type":"Keyword","value":"fn"}, |
135 | 135 | {"type":"TextWhitespace","value":" "}, |
136 | | - {"type":"Name","value":"call"}, |
| 136 | + {"type":"NameFunction","value":"call"}, |
137 | 137 | {"type":"Punctuation","value":"("}, |
138 | 138 | {"type":"Name","value":"self"}, |
139 | 139 | {"type":"Operator","value":":"}, |
|
171 | 171 | {"type":"TextWhitespace","value":" "}, |
172 | 172 | {"type":"Name","value":"self"}, |
173 | 173 | {"type":"Punctuation","value":"."}, |
174 | | - {"type":"Name","value":"callSlow"}, |
| 174 | + {"type":"NameFunction","value":"callSlow"}, |
175 | 175 | {"type":"Punctuation","value":"();"}, |
176 | 176 | {"type":"TextWhitespace","value":"\n "}, |
177 | 177 | {"type":"Punctuation","value":"}"}, |
178 | 178 | {"type":"TextWhitespace","value":"\n\n "}, |
179 | 179 | {"type":"Keyword","value":"fn"}, |
180 | 180 | {"type":"TextWhitespace","value":" "}, |
181 | | - {"type":"Name","value":"callSlow"}, |
| 181 | + {"type":"NameFunction","value":"callSlow"}, |
182 | 182 | {"type":"Punctuation","value":"("}, |
183 | 183 | {"type":"Name","value":"self"}, |
184 | 184 | {"type":"Operator","value":":"}, |
|
206 | 206 | {"type":"Punctuation","value":"."}, |
207 | 207 | {"type":"Name","value":"mutex"}, |
208 | 208 | {"type":"Punctuation","value":"."}, |
209 | | - {"type":"Name","value":"acquire"}, |
| 209 | + {"type":"NameFunction","value":"acquire"}, |
210 | 210 | {"type":"Punctuation","value":"();"}, |
211 | 211 | {"type":"TextWhitespace","value":"\n "}, |
212 | 212 | {"type":"Keyword","value":"defer"}, |
213 | 213 | {"type":"TextWhitespace","value":" "}, |
214 | 214 | {"type":"Name","value":"T"}, |
215 | 215 | {"type":"Punctuation","value":"."}, |
216 | | - {"type":"Name","value":"release"}, |
| 216 | + {"type":"NameFunction","value":"release"}, |
217 | 217 | {"type":"Punctuation","value":"();"}, |
218 | 218 | {"type":"TextWhitespace","value":"\n\n "}, |
219 | 219 | {"type":"CommentSingle","value":"// The first thread to acquire the mutex gets to run the initializer\n"}, |
|
229 | 229 | {"type":"TextWhitespace","value":" "}, |
230 | 230 | {"type":"Punctuation","value":"{"}, |
231 | 231 | {"type":"TextWhitespace","value":"\n "}, |
232 | | - {"type":"Name","value":"f"}, |
| 232 | + {"type":"NameFunction","value":"f"}, |
233 | 233 | {"type":"Punctuation","value":"();"}, |
234 | 234 | {"type":"TextWhitespace","value":"\n "}, |
235 | 235 | {"type":"NameBuiltin","value":"@atomicStore"}, |
|
276 | 276 | {"type":"TextWhitespace","value":" "}, |
277 | 277 | {"type":"Operator","value":"="}, |
278 | 278 | {"type":"TextWhitespace","value":" "}, |
279 | | - {"type":"Name","value":"once"}, |
| 279 | + {"type":"NameFunction","value":"once"}, |
280 | 280 | {"type":"Punctuation","value":"("}, |
281 | 281 | {"type":"Name","value":"incr"}, |
282 | 282 | {"type":"Punctuation","value":");"}, |
283 | 283 | {"type":"TextWhitespace","value":"\n\n"}, |
284 | 284 | {"type":"Keyword","value":"fn"}, |
285 | 285 | {"type":"TextWhitespace","value":" "}, |
286 | | - {"type":"Name","value":"incr"}, |
| 286 | + {"type":"NameFunction","value":"incr"}, |
287 | 287 | {"type":"Punctuation","value":"()"}, |
288 | 288 | {"type":"TextWhitespace","value":" "}, |
289 | 289 | {"type":"KeywordType","value":"void"}, |
|
317 | 317 | {"type":"TextWhitespace","value":"\n "}, |
318 | 318 | {"type":"Name","value":"global_once"}, |
319 | 319 | {"type":"Punctuation","value":"."}, |
320 | | - {"type":"Name","value":"call"}, |
| 320 | + {"type":"NameFunction","value":"call"}, |
321 | 321 | {"type":"Punctuation","value":"();"}, |
322 | 322 | {"type":"TextWhitespace","value":"\n "}, |
323 | 323 | {"type":"Name","value":"global_once"}, |
324 | 324 | {"type":"Punctuation","value":"."}, |
325 | | - {"type":"Name","value":"call"}, |
| 325 | + {"type":"NameFunction","value":"call"}, |
326 | 326 | {"type":"Punctuation","value":"();"}, |
327 | 327 | {"type":"TextWhitespace","value":"\n "}, |
328 | 328 | {"type":"Punctuation","value":"}"}, |
|
363 | 363 | {"type":"TextWhitespace","value":" "}, |
364 | 364 | {"type":"Name","value":"handle"}, |
365 | 365 | {"type":"Punctuation","value":"."}, |
366 | | - {"type":"Name","value":"wait"}, |
| 366 | + {"type":"NameFunction","value":"wait"}, |
367 | 367 | {"type":"Punctuation","value":"();"}, |
368 | 368 | {"type":"TextWhitespace","value":"\n\n "}, |
369 | 369 | {"type":"Keyword","value":"for"}, |
|
390 | 390 | {"type":"Punctuation","value":"."}, |
391 | 391 | {"type":"Name","value":"Thread"}, |
392 | 392 | {"type":"Punctuation","value":"."}, |
393 | | - {"type":"Name","value":"spawn"}, |
| 393 | + {"type":"NameFunction","value":"spawn"}, |
394 | 394 | {"type":"Punctuation","value":"("}, |
395 | 395 | {"type":"NameBuiltin","value":"@as"}, |
396 | 396 | {"type":"Punctuation","value":"("}, |
|
406 | 406 | {"type":"TextWhitespace","value":"\n "}, |
407 | 407 | {"type":"Keyword","value":"fn"}, |
408 | 408 | {"type":"TextWhitespace","value":" "}, |
409 | | - {"type":"Name","value":"thread_fn"}, |
| 409 | + {"type":"NameFunction","value":"thread_fn"}, |
410 | 410 | {"type":"Punctuation","value":"("}, |
411 | 411 | {"type":"Name","value":"x"}, |
412 | 412 | {"type":"Operator","value":":"}, |
|
420 | 420 | {"type":"TextWhitespace","value":"\n "}, |
421 | 421 | {"type":"Name","value":"global_once"}, |
422 | 422 | {"type":"Punctuation","value":"."}, |
423 | | - {"type":"Name","value":"call"}, |
| 423 | + {"type":"NameFunction","value":"call"}, |
424 | 424 | {"type":"Punctuation","value":"();"}, |
425 | 425 | {"type":"TextWhitespace","value":"\n "}, |
426 | 426 | {"type":"Punctuation","value":"}"}, |
|
435 | 435 | {"type":"TextWhitespace","value":"\n\n "}, |
436 | 436 | {"type":"Name","value":"testing"}, |
437 | 437 | {"type":"Punctuation","value":"."}, |
438 | | - {"type":"Name","value":"expectEqual"}, |
| 438 | + {"type":"NameFunction","value":"expectEqual"}, |
439 | 439 | {"type":"Punctuation","value":"("}, |
440 | 440 | {"type":"NameBuiltin","value":"@as"}, |
441 | 441 | {"type":"Punctuation","value":"("}, |
|
0 commit comments