Skip to main content

SyntaxExtensions.WithoutTrailingTrivia Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.Core.dll

Overloads

MethodSummary
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

SyntaxNodeOrToken

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

Returns

SyntaxToken