@@ -24,11 +24,11 @@ func testGlobalFunc() {
24
24
{ 1 } #^GLOBALFUNC_SAMELINE^#
25
25
#^GLOBALFUNC_NEWLINE^#
26
26
// GLOBALFUNC_SAMELINE: Begin completions, 1 items
27
- // GLOBALFUNC_SAMELINE-DAG: Pattern/ExprSpecific: {#fn2: () -> String {() -> String in |}#}[#() -> String#];
27
+ // GLOBALFUNC_SAMELINE-DAG: Pattern/ExprSpecific: {#fn2: () -> String {|}#}[#() -> String#];
28
28
// GLOBALFUNC_SAMELINE: End completions
29
29
30
30
// GLOBALFUNC_NEWLINE: Begin completions, 1 items
31
- // GLOBALFUNC_NEWLINE-DAG: Pattern/ExprSpecific: {#fn2: () -> String {() -> String in |}#}[#() -> String#];
31
+ // GLOBALFUNC_NEWLINE-DAG: Pattern/ExprSpecific: {#fn2: () -> String {|}#}[#() -> String#];
32
32
// GLOBALFUNC_NEWLINE: End completions
33
33
34
34
globalFunc1 ( )
@@ -53,14 +53,14 @@ func testMethod(value: MyStruct) {
53
53
} #^METHOD_SAMELINE^#
54
54
#^METHOD_NEWLINE^#
55
55
// METHOD_SAMELINE: Begin completions, 4 items
56
- // METHOD_SAMELINE-DAG: Pattern/ExprSpecific: {#fn2: (() -> String)? {() -> String in |}#}[#(() -> String)?#];
56
+ // METHOD_SAMELINE-DAG: Pattern/ExprSpecific: {#fn2: (() -> String)? {|}#}[#(() -> String)?#];
57
57
// METHOD_SAMELINE-DAG: Decl[InstanceMethod]/CurrNominal: .enumFunc()[#Void#];
58
58
// METHOD_SAMELINE-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]/IsSystem: [' ']+ {#SimpleEnum#}[#SimpleEnum#];
59
59
// METHOD_SAMELINE-DAG: Keyword[self]/CurrNominal: .self[#SimpleEnum#];
60
60
// METHOD_SAMELINE: End completions
61
61
62
62
// METHOD_NEWLINE: Begin completions
63
- // METHOD_NEWLINE-DAG: Pattern/ExprSpecific: {#fn2: (() -> String)? {() -> String in |}#}[#(() -> String)?#];
63
+ // METHOD_NEWLINE-DAG: Pattern/ExprSpecific: {#fn2: (() -> String)? {|}#}[#(() -> String)?#];
64
64
// METHOD_NEWLINE-DAG: Keyword[class]/None: class;
65
65
// METHOD_NEWLINE-DAG: Keyword[if]/None: if;
66
66
// METHOD_NEWLINE-DAG: Keyword[try]/None: try;
@@ -84,15 +84,15 @@ func testOverloadedInit() {
84
84
#^INIT_OVERLOADED_NEWLINE^#
85
85
86
86
// INIT_OVERLOADED_SAMELINE: Begin completions, 4 items
87
- // INIT_OVERLOADED_SAMELINE-DAG: Pattern/ExprSpecific: {#fn2: () -> String {() -> String in |}#}[#() -> String#];
88
- // INIT_OVERLOADED_SAMELINE-DAG: Pattern/ExprSpecific: {#fn3: () -> String {() -> String in |}#}[#() -> String#];
87
+ // INIT_OVERLOADED_SAMELINE-DAG: Pattern/ExprSpecific: {#fn2: () -> String {|}#}[#() -> String#];
88
+ // INIT_OVERLOADED_SAMELINE-DAG: Pattern/ExprSpecific: {#fn3: () -> String {|}#}[#() -> String#];
89
89
// INIT_OVERLOADED_SAMELINE-DAG: Decl[InstanceMethod]/CurrNominal: .testStructMethod()[#Void#];
90
90
// INIT_OVERLOADED_SAMELINE-DAG: Keyword[self]/CurrNominal: .self[#TestStruct#];
91
91
// INIT_OVERLOADED_SAMELINE: End completions
92
92
93
93
// INIT_OVERLOADED_NEWLINE: Begin completions
94
- // INIT_OVERLOADED_NEWLINE-DAG: Pattern/ExprSpecific: {#fn2: () -> String {() -> String in |}#}[#() -> String#];
95
- // INIT_OVERLOADED_NEWLINE-DAG: Pattern/ExprSpecific: {#fn3: () -> String {() -> String in |}#}[#() -> String#];
94
+ // INIT_OVERLOADED_NEWLINE-DAG: Pattern/ExprSpecific: {#fn2: () -> String {|}#}[#() -> String#];
95
+ // INIT_OVERLOADED_NEWLINE-DAG: Pattern/ExprSpecific: {#fn3: () -> String {|}#}[#() -> String#];
96
96
// INIT_OVERLOADED_NEWLINE-DAG: Keyword[class]/None: class;
97
97
// INIT_OVERLOADED_NEWLINE-DAG: Keyword[if]/None: if;
98
98
// INIT_OVERLOADED_NEWLINE-DAG: Keyword[try]/None: try;
@@ -111,15 +111,15 @@ func testOptionalInit() {
111
111
#^INIT_OPTIONAL_NEWLINE^#
112
112
113
113
// INIT_OPTIONAL_SAMELINE: Begin completions, 4 items
114
- // INIT_OPTIONAL_SAMELINE-DAG: Pattern/ExprSpecific: {#fn2: () -> String {() -> String in |}#}[#() -> String#];
115
- // INIT_OPTIONAL_SAMELINE-DAG: Pattern/ExprSpecific: {#fn3: () -> String {() -> String in |}#}[#() -> String#];
114
+ // INIT_OPTIONAL_SAMELINE-DAG: Pattern/ExprSpecific: {#fn2: () -> String {|}#}[#() -> String#];
115
+ // INIT_OPTIONAL_SAMELINE-DAG: Pattern/ExprSpecific: {#fn3: () -> String {|}#}[#() -> String#];
116
116
// INIT_OPTIONAL_SAMELINE-DAG: Decl[InstanceMethod]/CurrNominal: .testStructMethod()[#Void#];
117
117
// INIT_OPTIONAL_SAMELINE-DAG: Keyword[self]/CurrNominal: .self[#TestStruct2#];
118
118
// INIT_OPTIONAL_SAMELINE: End completions
119
119
120
120
// INIT_OPTIONAL_NEWLINE: Begin completions
121
- // INIT_OPTIONAL_NEWLINE-DAG: Pattern/ExprSpecific: {#fn2: () -> String {() -> String in |}#}[#() -> String#];
122
- // INIT_OPTIONAL_NEWLINE-DAG: Pattern/ExprSpecific: {#fn3: () -> String {() -> String in |}#}[#() -> String#];
121
+ // INIT_OPTIONAL_NEWLINE-DAG: Pattern/ExprSpecific: {#fn2: () -> String {|}#}[#() -> String#];
122
+ // INIT_OPTIONAL_NEWLINE-DAG: Pattern/ExprSpecific: {#fn3: () -> String {|}#}[#() -> String#];
123
123
// INIT_OPTIONAL_NEWLINE-DAG: Keyword[class]/None: class;
124
124
// INIT_OPTIONAL_NEWLINE-DAG: Keyword[if]/None: if;
125
125
// INIT_OPTIONAL_NEWLINE-DAG: Keyword[try]/None: try;
@@ -139,11 +139,11 @@ func testOptionalInit() {
139
139
#^INIT_REQUIRED_NEWLINE_1 ^#
140
140
141
141
// INIT_REQUIRED_SAMELINE_1: Begin completions, 1 items
142
- // INIT_REQUIRED_SAMELINE_1-DAG: Pattern/ExprSpecific: {#fn2: () -> String {() -> String in |}#}[#() -> String#];
142
+ // INIT_REQUIRED_SAMELINE_1-DAG: Pattern/ExprSpecific: {#fn2: () -> String {|}#}[#() -> String#];
143
143
// INIT_REQUIRED_SAMELINE_1: End completions
144
144
145
145
// INIT_REQUIRED_NEWLINE_1: Begin completions, 1 items
146
- // INIT_REQUIRED_NEWLINE_1-DAG: Pattern/ExprSpecific: {#fn2: () -> String {() -> String in |}#}[#() -> String#];
146
+ // INIT_REQUIRED_NEWLINE_1-DAG: Pattern/ExprSpecific: {#fn2: () -> String {|}#}[#() -> String#];
147
147
// INIT_REQUIRED_NEWLINE_1: End completions
148
148
149
149
// missing 'fn3'.
@@ -155,11 +155,11 @@ func testOptionalInit() {
155
155
#^INIT_REQUIRED_NEWLINE_2 ^#
156
156
157
157
// INIT_REQUIRED_SAMELINE_2: Begin completions, 1 items
158
- // INIT_REQUIRED_SAMELINE_2-DAG: Pattern/ExprSpecific: {#fn3: () -> String {() -> String in |}#}[#() -> String#];
158
+ // INIT_REQUIRED_SAMELINE_2-DAG: Pattern/ExprSpecific: {#fn3: () -> String {|}#}[#() -> String#];
159
159
// INIT_REQUIRED_SAMELINE_2: End completions
160
160
161
161
// INIT_REQUIRED_NEWLINE_2: Begin completions, 1 items
162
- // INIT_REQUIRED_NEWLINE_2-DAG: Pattern/ExprSpecific: {#fn3: () -> String {() -> String in |}#}[#() -> String#];
162
+ // INIT_REQUIRED_NEWLINE_2-DAG: Pattern/ExprSpecific: {#fn3: () -> String {|}#}[#() -> String#];
163
163
// INIT_REQUIRED_NEWLINE_2: End completions
164
164
165
165
// Call is completed.
@@ -218,14 +218,14 @@ struct TestNominalMember: P {
218
218
#^MEMBERDECL_NEWLINE^#
219
219
220
220
// MEMBERDECL_SAMELINE: Begin completions, 4 items
221
- // MEMBERDECL_SAMELINE-DAG: Pattern/ExprSpecific: {#fn2: (() -> String)? {() -> String in |}#}[#(() -> String)?#]; name=fn2: (() -> String)?
221
+ // MEMBERDECL_SAMELINE-DAG: Pattern/ExprSpecific: {#fn2: (() -> String)? {|}#}[#(() -> String)?#]; name=fn2: (() -> String)?
222
222
// MEMBERDECL_SAMELINE-DAG: Decl[InstanceMethod]/CurrNominal: .enumFunc()[#Void#]; name=enumFunc()
223
223
// MEMBERDECL_SAMELINE-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]/IsSystem: [' ']+ {#SimpleEnum#}[#SimpleEnum#]; name=+ SimpleEnum
224
224
// MEMBERDECL_SAMELINE-DAG: Keyword[self]/CurrNominal: .self[#SimpleEnum#]; name=self
225
225
// MEMBERDECL_SAMELINE: End completions
226
226
227
227
// MEMBERDECL_NEWLINE: Begin completions
228
- // MEMBERDECL_NEWLINE-DAG: Pattern/ExprSpecific: {#fn2: (() -> String)? {() -> String in |}#}[#(() -> String)?#]; name=fn2: (() -> String)?
228
+ // MEMBERDECL_NEWLINE-DAG: Pattern/ExprSpecific: {#fn2: (() -> String)? {|}#}[#(() -> String)?#]; name=fn2: (() -> String)?
229
229
// MEMBERDECL_NEWLINE-DAG: Keyword[enum]/None: enum; name=enum
230
230
// MEMBERDECL_NEWLINE-DAG: Keyword[func]/None: func; name=func
231
231
// MEMBERDECL_NEWLINE-DAG: Keyword[private]/None: private; name=private
0 commit comments