Skip to main content

SyntaxExtensions.WithoutLeadingTrivia Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.Core.dll

Overloads

MethodSummary
WithoutLeadingTrivia(SyntaxNodeOrToken)Creates a new SyntaxNodeOrToken with the leading trivia removed.
WithoutLeadingTrivia(SyntaxToken)Creates a new token from this token with the leading trivia removed.

WithoutLeadingTrivia(SyntaxNodeOrToken)

Creates a new SyntaxNodeOrToken with the leading trivia removed.

public static Microsoft.CodeAnalysis.SyntaxNodeOrToken WithoutLeadingTrivia(this Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrToken)

Parameters

nodeOrToken SyntaxNodeOrToken

Returns

SyntaxNodeOrToken

WithoutLeadingTrivia(SyntaxToken)

Creates a new token from this token with the leading trivia removed.

public static Microsoft.CodeAnalysis.SyntaxToken WithoutLeadingTrivia(this Microsoft.CodeAnalysis.SyntaxToken token)

Parameters

token SyntaxToken

Returns

SyntaxToken