27 references to BlockSpan
Microsoft.CodeAnalysis.Features (27)
Structure\BlockSpan.cs (5)
16string bannerText = BlockSpan.Ellipses, 89internal BlockSpan WithType(string type) 92internal BlockSpan WithIsCollapsible(bool isCollapsible) 95internal BlockSpan With( 118internal bool IsOverlappingBlockSpan(TextLineCollection lines, BlockSpan? other)
Structure\BlockStructure.cs (2)
11internal sealed class BlockStructure(ImmutableArray<BlockSpan> spans) 13public ImmutableArray<BlockSpan> Spans { get; } = spans;
Structure\BlockStructureContext.cs (4)
17private static readonly ObjectPool<ArrayBuilder<BlockSpan>> _blockSpanArrayBuilderPool = new ObjectPool<ArrayBuilder<BlockSpan>>(() => new ArrayBuilder<BlockSpan>()); 19public readonly ArrayBuilder<BlockSpan> Spans = _blockSpanArrayBuilderPool.Allocate();
Structure\BlockStructureServiceWithProviders.cs (2)
82private static BlockSpan UpdateBlockSpan(BlockSpan blockSpan, in BlockStructureOptions options)
Structure\Syntax\AbstractBlockStructureProvider.cs (3)
19private static readonly IComparer<BlockSpan> s_blockSpanComparer = Comparer<BlockSpan>.Create(static (x, y) => y.TextSpan.Start.CompareTo(x.TextSpan.Start)); 53BlockSpan? lastSpan = null;
Structure\Syntax\AbstractSyntaxNodeStructureProvider.cs (3)
16ArrayBuilder<BlockSpan> spans, 26ArrayBuilder<BlockSpan> spans, 39ArrayBuilder<BlockSpan> spans,
Structure\Syntax\AbstractSyntaxStructureProvider.cs (2)
15ArrayBuilder<BlockSpan> spans, 21ArrayBuilder<BlockSpan> spans,
Structure\Syntax\AbstractSyntaxTriviaStructureProvider.cs (1)
16ArrayBuilder<BlockSpan> spans,
Structure\Syntax\BlockSpanCollector.cs (5)
37ArrayBuilder<BlockSpan> spans, 44private void Collect(SyntaxNode root, ArrayBuilder<BlockSpan> spans) 63private void GetBlockSpans(SyntaxToken previousToken, SyntaxNode node, ArrayBuilder<BlockSpan> spans) 76private void GetBlockSpans(SyntaxToken token, ArrayBuilder<BlockSpan> spans) 82private void GetOutliningSpans(SyntaxTriviaList triviaList, ArrayBuilder<BlockSpan> spans)