Method IsCollapsible
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
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)
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
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.