44// KW_RETURN: Keyword[return]/None: return{{; name=.+$}}
55// KW_NO_RETURN-NOT: Keyword[return]
66
7+ // KW_IN: Keyword[in]/None: in{{; name=.+$}}
8+ // KW_NO_IN-NOT: Keyword[in]
9+
710// KW_DECL: Begin completions
811// KW_DECL-DAG: Keyword[class]/None: class{{; name=.+$}}
912// KW_DECL-DAG: Keyword/None: actor{{; name=.+$}}
161164// KW_DECL_STMT_TOPLEVEL-DAG: Keyword[do]/None: do{{; name=.+$}}
162165// KW_DECL_STMT_TOPLEVEL-DAG: Keyword[else]/None: else{{; name=.+$}}
163166// KW_DECL_STMT_TOPLEVEL-DAG: Keyword[for]/None: for{{; name=.+$}}
164- // KW_DECL_STMT_TOPLEVEL-DAG: Keyword[in]/None: in{{; name=.+$}}
165167// KW_DECL_STMT_TOPLEVEL-DAG: Keyword[while]/None: while{{; name=.+$}}
166168// KW_DECL_STMT_TOPLEVEL-DAG: Keyword[break]/None: break{{; name=.+$}}
167169// KW_DECL_STMT_TOPLEVEL-DAG: Keyword[continue]/None: continue{{; name=.+$}}
234236// KW_DECL_STMT-DAG: Keyword[do]/None: do{{; name=.+$}}
235237// KW_DECL_STMT-DAG: Keyword[else]/None: else{{; name=.+$}}
236238// KW_DECL_STMT-DAG: Keyword[for]/None: for{{; name=.+$}}
237- // KW_DECL_STMT-DAG: Keyword[in]/None: in{{; name=.+$}}
238239// KW_DECL_STMT-DAG: Keyword[while]/None: while{{; name=.+$}}
239240// KW_DECL_STMT-DAG: Keyword[break]/None: break{{; name=.+$}}
240241// KW_DECL_STMT-DAG: Keyword[continue]/None: continue{{; name=.+$}}
306307// KW_EXPR_NEG-NOT: Keyword{{.*}}break
307308// KW_EXPR_NEG: End completions
308309
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 ^#
310311
311312for _ 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 ^#
313314}
314315
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 ^#
316317if 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 ^#
318319
319320
320321if 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^# {}
323324// AFTER_IF_ELSE: Keyword[if]/None: if;
324325
325326func 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 ^#
327328}
328329func testAfterIfElse1( ) {
329330 if true { } else #^AFTER_IF_ELSE_1? check= AFTER_IF_ELSE^# { }
330331}
331332
332333func 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 ^#
334335}
335336
336337struct InStructFunc {
337338 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 ^#
339340 }
340341}
341342
342343enum InEnumFunc {
343344 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 ^#
345346 }
346347}
347348
348349class InClassFunc {
349350 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 ^#
351352 }
352353}
353354
354355class InClassFunc {
355356 class Nested {
356357 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 ^#
358359 }
359360 }
360361}
361362
362363func 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 ^# }
364365}
365366func 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 ^#
367368}
368369struct 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 ^# } ( )
370371}
371372
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 ^# }
373374
374375struct 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 ^# }
376377}
377378
378379struct 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 ^# }
380381}
381382
382383struct InStruct {
0 commit comments