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