Skip to content

Commit

Permalink
Strip trivia from tokens.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky committed Jul 13, 2023
1 parent 620bd3e commit a17cffe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static DiagnosticOrInterfaceInfo From(INamedTypeSymbol symbol, InterfaceD
baseSymbol?.ToDisplayString(),
syntax,
new ContainingSyntaxContext(syntax),
new ContainingSyntax(syntax.Modifiers, syntax.Kind(), syntax.Identifier, syntax.TypeParameterList),
new ContainingSyntax(syntax.Modifiers.StripTriviaFromTokens(), syntax.Kind(), syntax.Identifier.WithoutTrivia(), syntax.TypeParameterList),
guid ?? Guid.Empty,
interfaceAttributeData.Options,
syntax.Identifier.GetLocation()),
Expand Down

0 comments on commit a17cffe

Please sign in to comment.