6
6
// REQUIRES: asserts
7
7
8
8
// RUN: %batch-code-completion -filecheck-additional-suffix _DISABLED
9
- // RUN: %batch-code-completion -filecheck-additional-suffix _ENABLED -enable-experimental-feature ABIAttribute
9
+ // RUN: %batch-code-completion -filecheck-additional-suffix _ENABLED \
10
+ // RUN: -enable-experimental-feature ABIAttribute \
11
+ // RUN: -enable-experimental-feature NonIsolatedAsyncInheritsIsolationFromContext
10
12
11
13
// NOTE: Please do not include the ", N items" after "Begin completions". The
12
14
// item count creates needless merge conflicts given that an "End completions"
16
18
17
19
// KEYWORD2: Begin completions
18
20
// KEYWORD2_ENABLED-DAG: Keyword/None: abi[#Func Attribute#]; name=abi
21
+ // KEYWORD2_ENABLED-DAG: Keyword/None: execution[#Func Attribute#]; name=execution
19
22
// KEYWORD2_DISABLED-NOT: Keyword/None: abi[#{{.*}} Attribute#]; name=abi
23
+ // KEYWORD2_DISABLED-NOT: Keyword/None: execution[#{{.*}} Attribute#]; name=execution
20
24
// KEYWORD2: End completions
21
25
22
26
@#^KEYWORD3 ^# class C { }
23
27
24
28
// KEYWORD3: Begin completions
25
29
// KEYWORD3_ENABLED-NOT: Keyword/None: abi[#{{.*}} Attribute#]; name=abi
30
+ // KEYWORD3_ENABLED-NOT: Keyword/None: execution[#{{.*}} Attribute#]; name=execution
26
31
// KEYWORD3_DISABLED-NOT: Keyword/None: abi[#{{.*}} Attribute#]; name=abi
32
+ // KEYWORD3_DISABLED-NOT: Keyword/None: execution[#{{.*}} Attribute#]; name=execution
27
33
// KEYWORD3: End completions
28
34
29
35
@#^KEYWORD3_2 ? check= KEYWORD3^#IB class C2 { }
32
38
@#^KEYWORD4 ^# enum E { }
33
39
// KEYWORD4: Begin completions
34
40
// KEYWORD4_ENABLED-NOT: Keyword/None: abi[#{{.*}} Attribute#]; name=abi
41
+ // KEYWORD4_ENABLED-NOT: Keyword/None: execution[#{{.*}} Attribute#]; name=execution
35
42
// KEYWORD4_DISABLED-NOT: Keyword/None: abi[#{{.*}} Attribute#]; name=abi
43
+ // KEYWORD4_DISABLED-NOT: Keyword/None: execution[#{{.*}} Attribute#]; name=execution
36
44
// KEYWORD4: End completions
37
45
38
46
@#^KEYWORD5 ^# struct S { }
39
47
// KEYWORD5: Begin completions
40
48
// KEYWORD5_ENABLED-NOT: Keyword/None: abi[#{{.*}} Attribute#]; name=abi
49
+ // KEYWORD5_ENABLED-NOT: Keyword/None: execution[#{{.*}} Attribute#]; name=execution
41
50
// KEYWORD5_DISABLED-NOT: Keyword/None: abi[#{{.*}} Attribute#]; name=abi
51
+ // KEYWORD5_DISABLED-NOT: Keyword/None: execution[#{{.*}} Attribute#]; name=execution
42
52
// KEYWORD5: End completions
43
53
44
54
@#^ON_GLOBALVAR^# var globalVar
45
55
// ON_GLOBALVAR: Begin completions
46
56
// ON_GLOBALVAR_ENABLED-DAG: Keyword/None: abi[#Var Attribute#]; name=abi
57
+ // ON_GLOBALVAR_ENABLED-NOT: Keyword/None: execution[#{{.*}} Attribute#]; name=execution
47
58
// ON_GLOBALVAR_DISABLED-NOT: Keyword/None: abi[#{{.*}} Attribute#]; name=abi
59
+ // ON_GLOBALVAR_DISABLED-NOT: Keyword/None: execution[#{{.*}} Attribute#]; name=execution
48
60
// ON_GLOBALVAR: End completions
49
61
50
62
struct _S {
51
63
@#^ON_INIT^# init( )
52
64
// ON_INIT: Begin completions
53
65
// ON_INIT_ENABLED-DAG: Keyword/None: abi[#Constructor Attribute#]; name=abi
66
+ // ON_INIT_ENABLED-NOT: Keyword/None: execution[#{{.*}} Attribute#]; name=execution
54
67
// ON_INIT_DISABLED-NOT: Keyword/None: abi[#{{.*}} Attribute#]; name=abi
68
+ // ON_INIT_DISABLED-NOT: Keyword/None: execution[#{{.*}} Attribute#]; name=execution
55
69
// ON_INIT: End completions
56
70
57
71
@#^ON_PROPERTY^# var foo
58
72
// ON_PROPERTY: Begin completions
59
73
// ON_PROPERTY_ENABLED-DAG: Keyword/None: abi[#Var Attribute#]; name=abi
74
+ // ON_PROPERTY_ENABLED-NOT: Keyword/None: execution[#{{.*}} Attribute#]; name=execution
60
75
// ON_PROPERTY_DISABLED-NOT: Keyword/None: abi[#{{.*}} Attribute#]; name=abi
76
+ // ON_PROPERTY_DISABLED-NOT: Keyword/None: execution[#{{.*}} Attribute#]; name=execution
61
77
// ON_PROPERTY: End completions
62
78
63
79
@#^ON_METHOD^# private
64
80
func foo( )
65
81
// ON_METHOD: Begin completions
66
82
// ON_METHOD_ENABLED-DAG: Keyword/None: abi[#Func Attribute#]; name=abi
83
+ // ON_METHOD_ENABLED-DAG: Keyword/None: execution[#Func Attribute#]; name=execution
67
84
// ON_METHOD_DISABLED-NOT: Keyword/None: abi[#{{.*}} Attribute#]; name=abi
85
+ // ON_METHOD_DISABLED-NOT: Keyword/None: execution[#{{.*}} Attribute#]; name=execution
68
86
// ON_METHOD: End completions
69
87
70
88
71
89
func bar( @#^ON_PARAM_1 ? check= ON_PARAM^#)
72
90
// ON_PARAM: Begin completions
73
91
// ON_PARAM_ENABLED-NOT: Keyword/None: abi[#{{.*}} Attribute#]; name=abi
92
+ // ON_PARAM_ENABLED-NOT: Keyword/None: execution[#{{.*}} Attribute#]; name=execution
74
93
// ON_PARAM_DISABLED-NOT: Keyword/None: abi[#{{.*}} Attribute#]; name=abi
94
+ // ON_PARAM_DISABLED-NOT: Keyword/None: execution[#{{.*}} Attribute#]; name=execution
75
95
// ON_PARAM: End completions
76
96
77
97
func bar(
@@ -94,7 +114,9 @@ struct _S {
94
114
@#^ON_MEMBER_LAST^#
95
115
// ON_MEMBER_LAST: Begin completions
96
116
// ON_MEMBER_LAST_ENABLED-DAG: Keyword/None: abi[#Declaration Attribute#]; name=abi
117
+ // ON_MEMBER_LAST_ENABLED-DAG: Keyword/None: execution[#Declaration Attribute#]; name=execution
97
118
// ON_MEMBER_LAST_DISABLED-NOT: Keyword/None: abi[#{{.*}} Attribute#]; name=abi
119
+ // ON_MEMBER_LAST_DISABLED-NOT: Keyword/None: execution[#{{.*}} Attribute#]; name=execution
98
120
// ON_MEMBER_LAST: End completions
99
121
}
100
122
@@ -106,7 +128,9 @@ func takeClosure(_: () -> Void) {
106
128
// IN_CLOSURE: Begin completions
107
129
// FIXME: Not valid in this position (but CompletionLookup can't tell that)
108
130
// IN_CLOSURE_ENABLED-DAG: Keyword/None: abi[#Declaration Attribute#]; name=abi
131
+ // IN_CLOSURE_ENABLED-DAG: Keyword/None: execution[#Declaration Attribute#]; name=execution
109
132
// IN_CLOSURE_DISABLED-NOT: Keyword/None: abi[#{{.*}} Attribute#]; name=abi
133
+ // IN_CLOSURE_DISABLED-NOT: Keyword/None: execution[#{{.*}} Attribute#]; name=execution
110
134
// IN_CLOSURE: End completions
111
135
112
136
@#^KEYWORD_INDEPENDENT_1 ? check= KEYWORD_LAST^#
@@ -122,5 +146,7 @@ func dummy2() {}
122
146
123
147
// KEYWORD_LAST: Begin completions
124
148
// KEYWORD_LAST_ENABLED-DAG: Keyword/None: abi[#Declaration Attribute#]; name=abi
149
+ // KEYWORD_LAST_ENABLED-DAG: Keyword/None: execution[#Declaration Attribute#]; name=execution
125
150
// KEYWORD_LAST_DISABLED-NOT: Keyword/None: abi[#Declaration Attribute#]; name=abi
151
+ // KEYWORD_LAST_DISABLED-NOT: Keyword/None: execution[#Declaration Attribute#]; name=execution
126
152
// KEYWORD_LAST: End completions
0 commit comments