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
84
return
TextSpan
!= HintSpan
85
? $"{{Span={
TextSpan
}, HintSpan={HintSpan}, BannerText=\"{BannerText}\", AutoCollapse={AutoCollapse}, IsDefaultCollapsed={IsDefaultCollapsed}}}"
86
: $"{{Span={
TextSpan
}, BannerText=\"{BannerText}\", AutoCollapse={AutoCollapse}, IsDefaultCollapsed={IsDefaultCollapsed}}}";
106
var newTextSpan = textSpan.HasValue ? textSpan.Value :
TextSpan
;
134
var startLine = lines.GetLinePosition(this.
TextSpan
.Start).Line;
135
var otherStartLine = lines.GetLinePosition(other.Value.
TextSpan
.Start).Line;
139
var endLine = lines.GetLinePosition(this.
TextSpan
.End).Line;
140
var otherEndLine = lines.GetLinePosition(other.Value.
TextSpan
.End).Line;
Structure\Syntax\AbstractBlockStructureProvider.cs (2)
19
private static readonly IComparer<BlockSpan> s_blockSpanComparer = Comparer<BlockSpan>.Create(static (x, y) => y.
TextSpan
.Start.CompareTo(x.
TextSpan
.Start));