Skip to content

Commit

Permalink
Fix warning in SupressionContext (#128)
Browse files Browse the repository at this point in the history
Fixes a warning arising from updating to swift-syntax 6 in the
conformance of `SupressionContext` to `MacroExpansionContext`. Adds a
stub implementation of `lexicalContext` to resolve the warning.
  • Loading branch information
rauhul authored Oct 7, 2024
1 parent 1c2483b commit 5b68d35
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,8 @@ class SuppressionContext: MacroExpansionContext {
func diagnose(_ diagnostic: SwiftDiagnostics.Diagnostic) {
// ignore
}

var lexicalContext: [Syntax] {
[]
}
}

0 comments on commit 5b68d35

Please sign in to comment.