Sdílet prostřednictvím


SyntaxNodeExtensions.WithoutTrivia Method

Definition

Overloads

WithoutTrivia(SyntaxToken)

Creates a new token from this token without leading or trailing trivia.

WithoutTrivia<TSyntax>(TSyntax)

Creates a new node from this node without leading or trailing trivia.

WithoutTrivia(SyntaxToken)

Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs

Creates a new token from this token without leading or trailing trivia.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::CodeAnalysis::SyntaxToken WithoutTrivia(Microsoft::CodeAnalysis::SyntaxToken token);
public static Microsoft.CodeAnalysis.SyntaxToken WithoutTrivia (this Microsoft.CodeAnalysis.SyntaxToken token);
static member WithoutTrivia : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.SyntaxToken
<Extension()>
Public Function WithoutTrivia (token As SyntaxToken) As SyntaxToken

Parameters

token
SyntaxToken

Returns

Applies to

WithoutTrivia<TSyntax>(TSyntax)

Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs

Creates a new node from this node without leading or trailing trivia.

public:
generic <typename TSyntax>
 where TSyntax : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
 static TSyntax WithoutTrivia(TSyntax syntax);
public static TSyntax WithoutTrivia<TSyntax> (this TSyntax syntax) where TSyntax : Microsoft.CodeAnalysis.SyntaxNode;
static member WithoutTrivia : 'Syntax -> 'Syntax (requires 'Syntax :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function WithoutTrivia(Of TSyntax As SyntaxNode) (syntax As TSyntax) As TSyntax

Type Parameters

TSyntax

Parameters

syntax
TSyntax

Returns

TSyntax

Applies to