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
SyntaxNodeMicrosoft.CodeAnalysis.SyntaxNode
to check.outlineText
stringOutput parameter receives text substituting collapsed outline section.
span
TextSpanOutput parameter receives outline range.
checkStatements
boolIndicates 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
stringOutput parameter receives text substituting collapsed outline section.
span
TextSpanOutput parameter receives outline range.
Returns
- bool
True if
Microsoft.CodeAnalysis.SyntaxTrivia
list can be outlined; otherwise false.