Skip to main content

SyntaxExtensions.DescendantTrivia Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.Core.dll

Overloads

MethodSummary
DescendantTrivia<TNode>(SyntaxList<TNode>, Func<SyntaxNode, Boolean>, Boolean)Get a list of all the trivia associated with the nodes in the list.
DescendantTrivia<TNode>(SyntaxList<TNode>, TextSpan, Func<SyntaxNode, Boolean>, Boolean)Get a list of all the trivia associated with the nodes in the list.

DescendantTrivia<TNode>(SyntaxList<TNode>, Func<SyntaxNode, Boolean>, Boolean)

Get a list of all the trivia associated with the nodes in the list.

public static System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxTrivia> DescendantTrivia<TNode>(this Microsoft.CodeAnalysis.SyntaxList<TNode> list, Func<Microsoft.CodeAnalysis.SyntaxNode, bool>? descendIntoChildren = null, bool descendIntoTrivia = false) where TNode : Microsoft.CodeAnalysis.SyntaxNode

Type Parameters

TNode

Parameters

list SyntaxList<TNode>

descendIntoChildren Func<SyntaxNode, Boolean>

descendIntoTrivia Boolean

Returns

IEnumerable<SyntaxTrivia>

DescendantTrivia<TNode>(SyntaxList<TNode>, TextSpan, Func<SyntaxNode, Boolean>, Boolean)

Get a list of all the trivia associated with the nodes in the list.

public static System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxTrivia> DescendantTrivia<TNode>(this Microsoft.CodeAnalysis.SyntaxList<TNode> list, Microsoft.CodeAnalysis.Text.TextSpan span, Func<Microsoft.CodeAnalysis.SyntaxNode, bool>? descendIntoChildren = null, bool descendIntoTrivia = false) where TNode : Microsoft.CodeAnalysis.SyntaxNode

Type Parameters

TNode

Parameters

list SyntaxList<TNode>

span TextSpan

descendIntoChildren Func<SyntaxNode, Boolean>

descendIntoTrivia Boolean

Returns

IEnumerable<SyntaxTrivia>