2 writes to Span
Microsoft.CodeAnalysis (2)
Diagnostic\FileLinePositionSpan.cs (2)
64
Span
= span;
71
Span
= span;
38 references to Span
ConfigurationSchemaGenerator (1)
RuntimeSource\SourceGenerators\DiagnosticInfo.cs (1)
34
=> Location.Create(location.SourceTree?.FilePath ?? "", location.SourceSpan, location.GetLineSpan().
Span
);
Microsoft.CodeAnalysis (7)
Diagnostic\DiagnosticFormatter.cs (1)
58
FormatSourceSpan(mappedSpan.
Span
, formatter),
Diagnostic\FileLinePositionSpan.cs (6)
79
public LinePosition StartLinePosition =>
Span
.Start;
85
public LinePosition EndLinePosition =>
Span
.End;
100
=>
Span
.Equals(other.
Span
) &&
118
=> Hash.Combine(Path, Hash.Combine(HasMappedPath,
Span
.GetHashCode()));
126
=> Path + ": " +
Span
;
Microsoft.CodeAnalysis.CSharp (1)
Parser\Blender.cs (1)
154
var column = oldTree.SyntaxTree.GetLineSpan(new TextSpan(start, 0)).
Span
.Start.Character;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Diagnostics\LineSpanDirectiveTests.cs (1)
487
var span = getTextSpan(mappedText.Lines, mappedLineAndPositionSpan.
Span
);
Diagnostics\LocationsTests.cs (4)
531
Assert.Equal(lineSpan, lineInfo.
Span
);
536
Assert.Equal(lineSpan, mappedLineInfo.
Span
);
541
Assert.Equal(lineSpan, lineInfo.
Span
);
546
Assert.Equal(mappedLineSpan, mappedLineInfo.
Span
);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
KeywordHighlighting\AbstractKeywordHighlighterTests.cs (4)
74
var actualLineSpan = tree.GetLineSpan(highlightSpans[j]).
Span
;
80
var expectedLineSpan = tree.GetLineSpan(expectedHighlightSpans[j]).
Span
;
89
Assert.Equal(tree.GetLineSpan(expected).
Span
, tree.GetLineSpan(actual).
Span
);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (4)
Peek\DefinitionPeekableItem.cs (1)
102
resultCollection.Add(PeekHelpers.CreateDocumentPeekResult(declarationLocation.Path, declarationLocation.
Span
, entityOfInterestSpan, _peekableItem.PeekResultFactory));
Peek\ExternalFilePeekableItem.cs (2)
48
resultCollection.Add(PeekHelpers.CreateDocumentPeekResult(_peekableItem._span.Path, _peekableItem._span.
Span
, _peekableItem._span.
Span
, _peekableItem.PeekResultFactory));
Peek\PeekHelpers.cs (1)
70
return identifierLocation.SourceTree.GetLocation(node.Span).GetMappedLineSpan().
Span
;
Microsoft.CodeAnalysis.Features (8)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (4)
2173
var oldStartLine = oldMappedSpan.
Span
.Start.Line;
2174
var newStartLine = newMappedSpan.
Span
.Start.Line;
2179
if (oldMappedSpan.
Span
.Start.Character != newMappedSpan.
Span
.Start.Character)
EditAndContinue\ActiveStatementsMap.cs (3)
222
mappedSection.
Span
.Start,
223
mappedSection.
Span
.End,
230
var unmappedLineSpan = ReverseMapLinePositionSpan(unmappedSection, mappedSection.
Span
, activeStatement.Span);
EditAndContinue\SourceFileSpan.cs (1)
77
=> new(span.Path, span.
Span
);
Microsoft.CodeAnalysis.Workspaces (3)
Diagnostics\DiagnosticDataLocation.cs (1)
73
MappedFileSpan = new FileLinePositionSpan(GetNormalizedFilePath(unmappedFileSpan.Path, mappedSpan.Path), mappedSpan.
Span
);
Shared\Extensions\FileLinePositionSpanExtensions.cs (2)
15
=> span.
Span
.GetClampedTextSpan(text);
19
=> span.
Span
.GetClampedSpan(text);
Microsoft.VisualStudio.LanguageServices (3)
CallHierarchy\CallHierarchyDetail.cs (1)
33
EndColumn = location.GetLineSpan().
Span
.End.Character;
Progression\GraphBuilder.cs (1)
237
lineSpan.
Span
);
Progression\GraphQueries\IsUsedByGraphQuery.cs (1)
58
var sourceLocation = GraphBuilder.TryCreateSourceLocation(filePath, span.
Span
);
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\SourceGenerators\DiagnosticInfo.cs (1)
34
=> Location.Create(location.SourceTree?.FilePath ?? "", location.SourceSpan, location.GetLineSpan().
Span
);
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Parser.cs (1)
255
return Location.Create(location.SourceTree?.FilePath ?? string.Empty, location.SourceSpan, location.GetLineSpan().
Span
);