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