We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e307190 commit ac1f92dCopy full SHA for ac1f92d
Sources/SwiftParserDiagnostics/ParseDiagnosticsGenerator.swift
@@ -1173,7 +1173,8 @@ public class ParseDiagnosticsGenerator: SyntaxAnyVisitor {
1173
1174
if let attributes = node.attributes,
1175
attributes.isMissingAllTokens,
1176
- let unexpected = node.unexpectedBetweenBindingKeywordAndBindings
+ let unexpected = node.unexpectedBetweenBindingKeywordAndBindings,
1177
+ unexpected.only?.is(AttributeListSyntax.self) ?? false
1178
{
1179
1180
let fixit = FixIt(
0 commit comments