Skip to main content

SyntaxTokenList Struct Extensions

Extension MethodSummary
All(SyntaxTokenList, Func<SyntaxToken, Boolean>)Returns true if all tokens in a SyntaxTokenList matches the predicate.
Any(SyntaxTokenList, Func<SyntaxToken, Boolean>)Returns true if any token in a SyntaxTokenList matches the predicate.
Contains(SyntaxTokenList, SyntaxKind)Returns true if a token of the specified kind is in the SyntaxTokenList.
Contains(SyntaxTokenList, SyntaxToken)Returns true if the specified token is in the SyntaxTokenList.
ContainsAny(SyntaxTokenList, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind)Returns true if a token of the specified kinds is in the SyntaxTokenList.
ContainsAny(SyntaxTokenList, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind)Returns true if a token of the specified kinds is in the SyntaxTokenList.
ContainsAny(SyntaxTokenList, SyntaxKind, SyntaxKind, SyntaxKind)Returns true if a token of the specified kinds is in the SyntaxTokenList.
ContainsAny(SyntaxTokenList, SyntaxKind, SyntaxKind)Returns true if a token of the specified kinds is in the SyntaxTokenList.
Find(SyntaxTokenList, SyntaxKind)Searches for a token of the specified kind and returns the first occurrence within the entire SyntaxTokenList.
IndexOf(SyntaxTokenList, Func<SyntaxToken, Boolean>)Searches for a token that matches the predicate and returns the zero-based index of the first occurrence within the entire SyntaxTokenList.
RemoveRange(SyntaxTokenList, Int32, Int32)Creates a new list with tokens in the specified range removed.
ReplaceAt(SyntaxTokenList, Int32, SyntaxToken)Creates a new SyntaxTokenList with a token at the specified index replaced with a new token.
ReplaceRange(SyntaxTokenList, Int32, Int32, IEnumerable<SyntaxToken>)Creates a new list with the tokens in the specified range replaced with new tokens.