11 references to TextSpan
Microsoft.CodeAnalysis.Features (11)
Structure\BlockSpan.cs (9)
50/// The primary span representing "else" statement block would be the same as the <see cref="TextSpan"/> of 84return TextSpan != HintSpan 85? $"{{Span={TextSpan}, HintSpan={HintSpan}, BannerText=\"{BannerText}\", AutoCollapse={AutoCollapse}, IsDefaultCollapsed={IsDefaultCollapsed}}}" 86: $"{{Span={TextSpan}, BannerText=\"{BannerText}\", AutoCollapse={AutoCollapse}, IsDefaultCollapsed={IsDefaultCollapsed}}}"; 106var newTextSpan = textSpan.HasValue ? textSpan.Value : TextSpan; 134var startLine = lines.GetLinePosition(this.TextSpan.Start).Line; 135var otherStartLine = lines.GetLinePosition(other.Value.TextSpan.Start).Line; 139var endLine = lines.GetLinePosition(this.TextSpan.End).Line; 140var otherEndLine = lines.GetLinePosition(other.Value.TextSpan.End).Line;
Structure\Syntax\AbstractBlockStructureProvider.cs (2)
19private static readonly IComparer<BlockSpan> s_blockSpanComparer = Comparer<BlockSpan>.Create(static (x, y) => y.TextSpan.Start.CompareTo(x.TextSpan.Start));