SyntaxExtensions.WithoutTrailingTrivia Method
Containing Type: SyntaxExtensions
Assembly: Roslynator.Core.dll
Overloads
Method | Summary |
---|---|
WithoutTrailingTrivia(SyntaxNodeOrToken) | Creates a new SyntaxNodeOrToken with the trailing trivia removed. |
WithoutTrailingTrivia(SyntaxToken) | Creates a new token from this token with the trailing trivia removed. |
WithoutTrailingTrivia(SyntaxNodeOrToken)
Creates a new SyntaxNodeOrToken with the trailing trivia removed.
public static Microsoft.CodeAnalysis.SyntaxNodeOrToken WithoutTrailingTrivia(this Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrToken)
Parameters
nodeOrToken SyntaxNodeOrToken
Returns
WithoutTrailingTrivia(SyntaxToken)
Creates a new token from this token with the trailing trivia removed.
public static Microsoft.CodeAnalysis.SyntaxToken WithoutTrailingTrivia(this Microsoft.CodeAnalysis.SyntaxToken token)
Parameters
token SyntaxToken