Table of Contents

Method IsCollapsible

Namespace
Alternet.Syntax.Parsers.Roslyn
Assembly
Alternet.Syntax.Parsers.Roslyn.v9.dll

IsCollapsible(SyntaxNode, out string, out TextSpan, bool)

When implemented by a class, indicates whether specified Microsoft.CodeAnalysis.SyntaxNode can be outlined.

bool IsCollapsible(SyntaxNode node, out string outlineText, out TextSpan span, bool checkStatements)

Parameters

node SyntaxNode

Microsoft.CodeAnalysis.SyntaxNode to check.

outlineText string

Output parameter receives text substituting collapsed outline section.

span TextSpan

Output parameter receives outline range.

checkStatements bool

Indicates whether statement node also should be processed.

Returns

bool

True if Microsoft.CodeAnalysis.SyntaxNode can be outlined; otherwise false.

IsCollapsible(IEnumerable<SyntaxTrivia>, out string, out TextSpan)

When implemented by a class, indicates whether specified Microsoft.CodeAnalysis.SyntaxTrivia list can be outlined.

bool IsCollapsible(IEnumerable<SyntaxTrivia> triviaList, out string outlineText, out TextSpan span)

Parameters

triviaList IEnumerable<SyntaxTrivia>

Microsoft.CodeAnalysis.SyntaxTriviaList to check.

outlineText string

Output parameter receives text substituting collapsed outline section.

span TextSpan

Output parameter receives outline range.

Returns

bool

True if Microsoft.CodeAnalysis.SyntaxTrivia list can be outlined; otherwise false.