Skip to content

Commit c579a63

Browse files
committed
[ASTGen] Move unimplemented macro role case down
1 parent ac123b5 commit c579a63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ASTGen/Sources/ASTGen/SourceFile.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ public func parseSourceFile(
122122
.preambleMacroExpansion,
123123
.replacedFunctionBody,
124124
.prettyPrinted,
125-
.defaultArgument,
126-
.attribute:
125+
.defaultArgument:
127126
parsed = Syntax(SourceFileSyntax.parse(from: &parser))
128127

129128
case .declarationMacroExpansion,
@@ -141,7 +140,8 @@ public func parseSourceFile(
141140
case .accessorMacroExpansion:
142141
// FIXME: Implement specialized parsing.
143142
parsed = Syntax(SourceFileSyntax.parse(from: &parser))
144-
case .memberAttributeMacroExpansion:
143+
case .memberAttributeMacroExpansion,
144+
.attribute:
145145
// FIXME: Implement specialized parsing.
146146
parsed = Syntax(SourceFileSyntax.parse(from: &parser))
147147
case .bodyMacroExpansion:

0 commit comments

Comments
 (0)