File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
lib/ASTGen/Sources/ASTGen Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,29 @@ fileprivate struct ThrownErrorDiagnostic: DiagnosticMessage {
117
117
}
118
118
}
119
119
120
+ extension MacroExpansionDeclSyntax {
121
+ func asMacroExpansionExpr( ) -> MacroExpansionExprSyntax {
122
+ MacroExpansionExprSyntax (
123
+ unexpectedBeforePoundToken,
124
+ poundToken: poundToken,
125
+ unexpectedBetweenPoundTokenAndMacro,
126
+ macro: macro,
127
+ genericArguments: genericArguments,
128
+ unexpectedBetweenGenericArgumentsAndLeftParen,
129
+ leftParen: leftParen,
130
+ unexpectedBetweenLeftParenAndArgumentList,
131
+ argumentList: argumentList,
132
+ unexpectedBetweenArgumentListAndRightParen,
133
+ rightParen: rightParen,
134
+ unexpectedBetweenRightParenAndTrailingClosure,
135
+ trailingClosure: trailingClosure,
136
+ unexpectedBetweenTrailingClosureAndAdditionalTrailingClosures,
137
+ additionalTrailingClosures: additionalTrailingClosures,
138
+ unexpectedAfterAdditionalTrailingClosures
139
+ )
140
+ }
141
+ }
142
+
120
143
@_cdecl ( " swift_ASTGen_evaluateMacro " )
121
144
@usableFromInline
122
145
func evaluateMacro(
You can’t perform that action at this time.
0 commit comments