Skip to main content

SyntaxTrivia Struct Extensions

Extension MethodSummary
IsEndOfLineTrivia(SyntaxTrivia)Returns true if the trivia is SyntaxKind.EndOfLineTrivia.
IsKind(SyntaxTrivia, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind)Returns true if a token's kind is one of the specified kinds.
IsKind(SyntaxTrivia, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind)Returns true if a token's kind is one of the specified kinds.
IsKind(SyntaxTrivia, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind)Returns true if a token's kind is one of the specified kinds.
IsKind(SyntaxTrivia, SyntaxKind, SyntaxKind, SyntaxKind)Returns true if a token's kind is one of the specified kinds.
IsKind(SyntaxTrivia, SyntaxKind, SyntaxKind)Returns true if a trivia's kind is one of the specified kinds.
IsWhitespaceOrEndOfLineTrivia(SyntaxTrivia)Returns true if the trivia is either SyntaxKind.WhitespaceTrivia or SyntaxKind.EndOfLineTrivia.
IsWhitespaceTrivia(SyntaxTrivia)Returns true if the trivia is SyntaxKind.WhitespaceTrivia.
TryGetContainingList(SyntaxTrivia, SyntaxTriviaList, Boolean, Boolean)Gets a SyntaxTriviaList the specified trivia is contained in.