SyntaxExtensions.WithoutLeadingTrivia Method
Containing Type: SyntaxExtensions
Assembly: Roslynator.Core.dll
Overloads
Method | Summary |
---|---|
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
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