Skip to main content

SyntaxExtensions.ContainsAny Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
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.

ContainsAny(SyntaxTokenList, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind)

Returns true if a token of the specified kinds is in the SyntaxTokenList.

public static bool ContainsAny(this Microsoft.CodeAnalysis.SyntaxTokenList tokenList, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind1, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind2, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind3, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind4, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind5)

Parameters

tokenList SyntaxTokenList

kind1 SyntaxKind

kind2 SyntaxKind

kind3 SyntaxKind

kind4 SyntaxKind

kind5 SyntaxKind

Returns

Boolean

ContainsAny(SyntaxTokenList, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind)

Returns true if a token of the specified kinds is in the SyntaxTokenList.

public static bool ContainsAny(this Microsoft.CodeAnalysis.SyntaxTokenList tokenList, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind1, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind2, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind3, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind4)

Parameters

tokenList SyntaxTokenList

kind1 SyntaxKind

kind2 SyntaxKind

kind3 SyntaxKind

kind4 SyntaxKind

Returns

Boolean

ContainsAny(SyntaxTokenList, SyntaxKind, SyntaxKind, SyntaxKind)

Returns true if a token of the specified kinds is in the SyntaxTokenList.

public static bool ContainsAny(this Microsoft.CodeAnalysis.SyntaxTokenList tokenList, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind1, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind2, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind3)

Parameters

tokenList SyntaxTokenList

kind1 SyntaxKind

kind2 SyntaxKind

kind3 SyntaxKind

Returns

Boolean

ContainsAny(SyntaxTokenList, SyntaxKind, SyntaxKind)

Returns true if a token of the specified kinds is in the SyntaxTokenList.

public static bool ContainsAny(this Microsoft.CodeAnalysis.SyntaxTokenList tokenList, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind1, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind2)

Parameters

tokenList SyntaxTokenList

kind1 SyntaxKind

kind2 SyntaxKind

Returns

Boolean