SyntaxExtensions.Any Method
Containing Type: SyntaxExtensions
Assembly: Roslynator.Core.dll
Overloads
Method | Summary |
---|---|
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
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
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
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>