Skip to main content

SyntaxExtensions.Any Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.Core.dll

Overloads

MethodSummary
Any(SyntaxTokenList, Func<SyntaxToken, Boolean>)Returns true if any token in a SyntaxTokenList matches the predicate.
Any(SyntaxTriviaList, Func<SyntaxTrivia, Boolean>)Returns true if any trivia in a SyntaxTriviaList matches the predicate.
Any<TNode>(SeparatedSyntaxList<TNode>, Func<TNode, Boolean>)Returns true if any node in a list matches the predicate.
Any<TNode>(SyntaxList<TNode>, Func<TNode, Boolean>)Returns true if any node in a list matches the predicate.

Any(SyntaxTokenList, Func<SyntaxToken, Boolean>)

Returns true if any token in a SyntaxTokenList matches the predicate.

public static bool Any(this Microsoft.CodeAnalysis.SyntaxTokenList list, Func<Microsoft.CodeAnalysis.SyntaxToken, bool> predicate)

Parameters

list SyntaxTokenList

predicate Func<SyntaxToken, Boolean>

Returns

Boolean

Any(SyntaxTriviaList, Func<SyntaxTrivia, Boolean>)

Returns true if any trivia in a SyntaxTriviaList matches the predicate.

public static bool Any(this Microsoft.CodeAnalysis.SyntaxTriviaList list, Func<Microsoft.CodeAnalysis.SyntaxTrivia, bool> predicate)

Parameters

list SyntaxTriviaList

predicate Func<SyntaxTrivia, Boolean>

Returns

Boolean

Any<TNode>(SeparatedSyntaxList<TNode>, Func<TNode, Boolean>)

Returns true if any node in a list matches the predicate.

public static bool Any<TNode>(this Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode> list, Func<TNode, bool> predicate) where TNode : Microsoft.CodeAnalysis.SyntaxNode

Type Parameters

TNode

Parameters

list SeparatedSyntaxList<TNode>

predicate Func<TNode, Boolean>

Returns

Boolean

Any<TNode>(SyntaxList<TNode>, Func<TNode, Boolean>)

Returns true if any node in a list matches the predicate.

public static bool Any<TNode>(this Microsoft.CodeAnalysis.SyntaxList<TNode> list, Func<TNode, bool> predicate) where TNode : Microsoft.CodeAnalysis.SyntaxNode

Type Parameters

TNode

Parameters

list SyntaxList<TNode>

predicate Func<TNode, Boolean>

Returns

Boolean