4
4
// KW_RETURN: Keyword[return]/None: return{{; name=.+$}}
5
5
// KW_NO_RETURN-NOT: Keyword[return]
6
6
7
+ // KW_IN: Keyword[in]/None: in{{; name=.+$}}
8
+ // KW_NO_IN-NOT: Keyword[in]
9
+
7
10
// KW_DECL: Begin completions
8
11
// KW_DECL-DAG: Keyword[class]/None: class{{; name=.+$}}
9
12
// KW_DECL-DAG: Keyword/None: actor{{; name=.+$}}
161
164
// KW_DECL_STMT_TOPLEVEL-DAG: Keyword[do]/None: do{{; name=.+$}}
162
165
// KW_DECL_STMT_TOPLEVEL-DAG: Keyword[else]/None: else{{; name=.+$}}
163
166
// KW_DECL_STMT_TOPLEVEL-DAG: Keyword[for]/None: for{{; name=.+$}}
164
- // KW_DECL_STMT_TOPLEVEL-DAG: Keyword[in]/None: in{{; name=.+$}}
165
167
// KW_DECL_STMT_TOPLEVEL-DAG: Keyword[while]/None: while{{; name=.+$}}
166
168
// KW_DECL_STMT_TOPLEVEL-DAG: Keyword[break]/None: break{{; name=.+$}}
167
169
// KW_DECL_STMT_TOPLEVEL-DAG: Keyword[continue]/None: continue{{; name=.+$}}
234
236
// KW_DECL_STMT-DAG: Keyword[do]/None: do{{; name=.+$}}
235
237
// KW_DECL_STMT-DAG: Keyword[else]/None: else{{; name=.+$}}
236
238
// KW_DECL_STMT-DAG: Keyword[for]/None: for{{; name=.+$}}
237
- // KW_DECL_STMT-DAG: Keyword[in]/None: in{{; name=.+$}}
238
239
// KW_DECL_STMT-DAG: Keyword[while]/None: while{{; name=.+$}}
239
240
// KW_DECL_STMT-DAG: Keyword[break]/None: break{{; name=.+$}}
240
241
// KW_DECL_STMT-DAG: Keyword[continue]/None: continue{{; name=.+$}}
306
307
// KW_EXPR_NEG-NOT: Keyword{{.*}}break
307
308
// KW_EXPR_NEG: End completions
308
309
309
- #^TOP_LEVEL_1 ? check= KW_DECL_STMT_TOPLEVEL;check= KW_NO_RETURN^#
310
+ #^TOP_LEVEL_1 ? check= KW_DECL_STMT_TOPLEVEL;check= KW_NO_RETURN;check = KW_NO_IN ^#
310
311
311
312
for _ in 1 ... 10 {
312
- #^TOP_LEVEL_2 ? check= KW_DECL_STMT;check= KW_NO_RETURN^#
313
+ #^TOP_LEVEL_2 ? check= KW_DECL_STMT;check= KW_NO_RETURN;check = KW_NO_IN ^#
313
314
}
314
315
315
- if true { } #^TOP_LEVEL_AFTER_IF_1? check= KW_DECL_STMT_TOPLEVEL;check= KW_NO_RETURN^#
316
+ if true { } #^TOP_LEVEL_AFTER_IF_1? check= KW_DECL_STMT_TOPLEVEL;check= KW_NO_RETURN;check = KW_NO_IN ^#
316
317
if true { }
317
- #^TOP_LEVEL_AFTER_IF_2 ? check= KW_DECL_STMT_TOPLEVEL;check= KW_NO_RETURN^#
318
+ #^TOP_LEVEL_AFTER_IF_2 ? check= KW_DECL_STMT_TOPLEVEL;check= KW_NO_RETURN;check = KW_NO_IN ^#
318
319
319
320
320
321
if true { } else #^TOP_LEVEL_AFTER_IF_ELSE_1? check= AFTER_IF_ELSE^# { }
@@ -323,60 +324,60 @@ if true {} else #^TOP_LEVEL_AFTER_IF_ELSE_1?check=AFTER_IF_ELSE^# {}
323
324
// AFTER_IF_ELSE: Keyword[if]/None: if;
324
325
325
326
func testAfterIf1( ) {
326
- if true { } #^AFTER_IF_1? check= KW_DECL_STMT;check= KW_RETURN^#
327
+ if true { } #^AFTER_IF_1? check= KW_DECL_STMT;check= KW_RETURN;check = KW_NO_IN ^#
327
328
}
328
329
func testAfterIfElse1( ) {
329
330
if true { } else #^AFTER_IF_ELSE_1? check= AFTER_IF_ELSE^# { }
330
331
}
331
332
332
333
func testInFuncBody1( ) {
333
- #^IN_FUNC_BODY_1 ? check= KW_DECL_STMT;check= KW_RETURN^#
334
+ #^IN_FUNC_BODY_1 ? check= KW_DECL_STMT;check= KW_RETURN;check = KW_NO_IN ^#
334
335
}
335
336
336
337
struct InStructFunc {
337
338
func testInFuncBody2( ) {
338
- #^IN_FUNC_BODY_2 ? check= KW_DECL_STMT;check= KW_RETURN^#
339
+ #^IN_FUNC_BODY_2 ? check= KW_DECL_STMT;check= KW_RETURN;check = KW_NO_IN ^#
339
340
}
340
341
}
341
342
342
343
enum InEnumFunc {
343
344
func testInFuncBody3( ) {
344
- #^IN_FUNC_BODY_3 ? check= KW_DECL_STMT;check= KW_RETURN^#
345
+ #^IN_FUNC_BODY_3 ? check= KW_DECL_STMT;check= KW_RETURN;check = KW_NO_IN ^#
345
346
}
346
347
}
347
348
348
349
class InClassFunc {
349
350
func testInFuncBody4( ) {
350
- #^IN_FUNC_BODY_4 ? check= KW_DECL_STMT;check= KW_RETURN^#
351
+ #^IN_FUNC_BODY_4 ? check= KW_DECL_STMT;check= KW_RETURN;check = KW_NO_IN ^#
351
352
}
352
353
}
353
354
354
355
class InClassFunc {
355
356
class Nested {
356
357
func testInFuncBody5( ) {
357
- #^IN_FUNC_BODY_5 ? check= KW_DECL_STMT;check= KW_RETURN^#
358
+ #^IN_FUNC_BODY_5 ? check= KW_DECL_STMT;check= KW_RETURN;check = KW_NO_IN ^#
358
359
}
359
360
}
360
361
}
361
362
362
363
func testInClosure1( ) {
363
- { #^IN_CLOSURE_1 ? check= KW_DECL_STMT;check= KW_RETURN^# }
364
+ { #^IN_CLOSURE_1 ? check= KW_DECL_STMT;check= KW_RETURN;check = KW_IN ^# }
364
365
}
365
366
func testInClosure2( ) {
366
- { #^IN_CLOSURE_2 ? check= KW_DECL_STMT;check= KW_RETURN^#
367
+ { #^IN_CLOSURE_2 ? check= KW_DECL_STMT;check= KW_RETURN;check = KW_IN ^#
367
368
}
368
369
struct InVarClosureInit {
369
- let x = { #^IN_CLOSURE_3 ? check= KW_DECL_STMT;check= KW_RETURN^# } ( )
370
+ let x = { #^IN_CLOSURE_3 ? check= KW_DECL_STMT;check= KW_RETURN;check = KW_IN ^# } ( )
370
371
}
371
372
372
- { #^IN_CLOSURE_4 ? check= KW_DECL_STMT;check= KW_RETURN^# }
373
+ { #^IN_CLOSURE_4 ? check= KW_DECL_STMT;check= KW_RETURN;check = KW_IN ^# }
373
374
374
375
struct InSubscript {
375
- subscript( x: Int ) -> Int { #^IN_SUBSCRIPT_1 ? check= KW_DECL_STMT;check= KW_RETURN^# }
376
+ subscript( x: Int ) -> Int { #^IN_SUBSCRIPT_1 ? check= KW_DECL_STMT;check= KW_RETURN;check = KW_NO_IN ^# }
376
377
}
377
378
378
379
struct InInit {
379
- init ? ( ) { #^IN_INIT_1 ? check= KW_DECL_STMT;check= KW_RETURN^# }
380
+ init ? ( ) { #^IN_INIT_1 ? check= KW_DECL_STMT;check= KW_RETURN;check = KW_NO_IN ^# }
380
381
}
381
382
382
383
struct InStruct {
0 commit comments