Table of Contents

Method IsCollapsible

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

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

Indicates whether specified Microsoft.CodeAnalysis.SyntaxNode can be outlined.

public override 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)

Indicates whether specified Microsoft.CodeAnalysis.SyntaxTrivia list can be outlined.

public override 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.