Skip to main content

SyntaxExtensions.All Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.Core.dll

Overloads

MethodSummary
All(SyntaxTokenList, Func<SyntaxToken, Boolean>)Returns true if all tokens in a SyntaxTokenList matches the predicate.
All(SyntaxTriviaList, Func<SyntaxTrivia, Boolean>)Returns true if all trivia in a SyntaxTriviaList matches the predicate.
All<TNode>(SeparatedSyntaxList<TNode>, Func<TNode, Boolean>)Returns true if all nodes in a list matches the predicate.
All<TNode>(SyntaxList<TNode>, Func<TNode, Boolean>)Returns true if all nodes in a list matches the predicate.

All(SyntaxTokenList, Func<SyntaxToken, Boolean>)

Returns true if all tokens in a SyntaxTokenList matches the predicate.

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

Parameters

list SyntaxTokenList

predicate Func<SyntaxToken, Boolean>

Returns

Boolean

All(SyntaxTriviaList, Func<SyntaxTrivia, Boolean>)

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

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

Parameters

list SyntaxTriviaList

predicate Func<SyntaxTrivia, Boolean>

Returns

Boolean

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

Returns true if all nodes in a list matches the predicate.

public static bool All<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

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

Returns true if all nodes in a list matches the predicate.

public static bool All<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