CSharpExtensions.Kind Method

Definition

Overloads

Kind(SyntaxNode)

Returns SyntaxKind for SyntaxNode from RawKind property.

Kind(SyntaxNodeOrToken)

Returns SyntaxKind for SyntaxNode from RawKind property.

Kind(SyntaxToken)

Returns SyntaxKind for SyntaxToken from RawKind property.

Kind(SyntaxTrivia)

Returns SyntaxKind for SyntaxTrivia from RawKind property.

Kind(SyntaxNode)

Returns SyntaxKind for SyntaxNode from RawKind property.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::CodeAnalysis::CSharp::SyntaxKind Kind(Microsoft::CodeAnalysis::SyntaxNode ^ node);
public static Microsoft.CodeAnalysis.CSharp.SyntaxKind Kind (this Microsoft.CodeAnalysis.SyntaxNode node);
static member Kind : Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.CSharp.SyntaxKind
<Extension()>
Public Function Kind (node As SyntaxNode) As SyntaxKind

Parameters

node
SyntaxNode

Returns

SyntaxKind

Applies to

Kind(SyntaxNodeOrToken)

Returns SyntaxKind for SyntaxNode from RawKind property.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::CodeAnalysis::CSharp::SyntaxKind Kind(Microsoft::CodeAnalysis::SyntaxNodeOrToken nodeOrToken);
public static Microsoft.CodeAnalysis.CSharp.SyntaxKind Kind (this Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrToken);
static member Kind : Microsoft.CodeAnalysis.SyntaxNodeOrToken -> Microsoft.CodeAnalysis.CSharp.SyntaxKind
<Extension()>
Public Function Kind (nodeOrToken As SyntaxNodeOrToken) As SyntaxKind

Parameters

nodeOrToken
SyntaxNodeOrToken

Returns

SyntaxKind

Applies to

Kind(SyntaxToken)

Returns SyntaxKind for SyntaxToken from RawKind property.

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

Parameters

token
SyntaxToken

Returns

SyntaxKind

Applies to

Kind(SyntaxTrivia)

Returns SyntaxKind for SyntaxTrivia from RawKind property.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::CodeAnalysis::CSharp::SyntaxKind Kind(Microsoft::CodeAnalysis::SyntaxTrivia trivia);
public static Microsoft.CodeAnalysis.CSharp.SyntaxKind Kind (this Microsoft.CodeAnalysis.SyntaxTrivia trivia);
static member Kind : Microsoft.CodeAnalysis.SyntaxTrivia -> Microsoft.CodeAnalysis.CSharp.SyntaxKind
<Extension()>
Public Function Kind (trivia As SyntaxTrivia) As SyntaxKind

Parameters

trivia
SyntaxTrivia

Returns

SyntaxKind

Applies to