Delen via


VisualBasicExtensions Class

Definition

Addition Visual Basic syntax extension methods.

public ref class VisualBasicExtensions sealed
public sealed class VisualBasicExtensions
type VisualBasicExtensions = class
Public Module VisualBasicExtensions
Inheritance
VisualBasicExtensions

Methods

Any(SyntaxTokenList, SyntaxKind)

Tests whether a list contains token of a particular kind.

Any(SyntaxTriviaList, SyntaxKind)

Tests whether a list contains trivia of a particular kind.

Any<TNode>(SeparatedSyntaxList<TNode>, SyntaxKind)

Tests whether a list contains node of a particular kind.

Any<TNode>(SyntaxList<TNode>, SyntaxKind)

Tests whether a list contains node of a particular kind.

ContainsDirective(SyntaxNode, SyntaxKind)

Returns true if this node contains any directives (e.g. #if, #nullable, etc.) within it with a matching kind.

IndexOf(SyntaxTokenList, SyntaxKind)

Returns the index of the first token of a specified kind in the token list.

IndexOf(SyntaxTriviaList, SyntaxKind)

Returns the index of the first trivia of a specified kind in the trivia list.

IndexOf<TNode>(SeparatedSyntaxList<TNode>, SyntaxKind)

Returns the index of the first node of a specified kind in the node list.

IndexOf<TNode>(SyntaxList<TNode>, SyntaxKind)

Returns the index of the first node of a specified kind in the node list.

IsKind(SyntaxNode, SyntaxKind)

Determines if SyntaxNode is of a specified kind.

IsKind(SyntaxNodeOrToken, SyntaxKind)

Determines if SyntaxNodeOrToken is of a specified kind.

IsKind(SyntaxToken, SyntaxKind)

Determines if SyntaxToken is of a specified kind.

IsKind(SyntaxTrivia, SyntaxKind)

Determines if SyntaxTrivia is of a specified kind.

Applies to