2 writes to Span
Microsoft.CodeAnalysis (2)
Diagnostic\FileLinePositionSpan.cs (2)
64Span = span; 71Span = 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)
58FormatSourceSpan(mappedSpan.Span, formatter),
Diagnostic\FileLinePositionSpan.cs (6)
79public LinePosition StartLinePosition => Span.Start; 85public 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)
154var column = oldTree.SyntaxTree.GetLineSpan(new TextSpan(start, 0)).Span.Start.Character;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Diagnostics\LineSpanDirectiveTests.cs (1)
487var span = getTextSpan(mappedText.Lines, mappedLineAndPositionSpan.Span);
Diagnostics\LocationsTests.cs (4)
531Assert.Equal(lineSpan, lineInfo.Span); 536Assert.Equal(lineSpan, mappedLineInfo.Span); 541Assert.Equal(lineSpan, lineInfo.Span); 546Assert.Equal(mappedLineSpan, mappedLineInfo.Span);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
KeywordHighlighting\AbstractKeywordHighlighterTests.cs (4)
74var actualLineSpan = tree.GetLineSpan(highlightSpans[j]).Span; 80var expectedLineSpan = tree.GetLineSpan(expectedHighlightSpans[j]).Span; 89Assert.Equal(tree.GetLineSpan(expected).Span, tree.GetLineSpan(actual).Span);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (4)
Peek\DefinitionPeekableItem.cs (1)
102resultCollection.Add(PeekHelpers.CreateDocumentPeekResult(declarationLocation.Path, declarationLocation.Span, entityOfInterestSpan, _peekableItem.PeekResultFactory));
Peek\ExternalFilePeekableItem.cs (2)
48resultCollection.Add(PeekHelpers.CreateDocumentPeekResult(_peekableItem._span.Path, _peekableItem._span.Span, _peekableItem._span.Span, _peekableItem.PeekResultFactory));
Peek\PeekHelpers.cs (1)
70return identifierLocation.SourceTree.GetLocation(node.Span).GetMappedLineSpan().Span;
Microsoft.CodeAnalysis.Features (8)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (4)
2173var oldStartLine = oldMappedSpan.Span.Start.Line; 2174var newStartLine = newMappedSpan.Span.Start.Line; 2179if (oldMappedSpan.Span.Start.Character != newMappedSpan.Span.Start.Character)
EditAndContinue\ActiveStatementsMap.cs (3)
222mappedSection.Span.Start, 223mappedSection.Span.End, 230var 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)
73MappedFileSpan = 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)
33EndColumn = location.GetLineSpan().Span.End.Character;
Progression\GraphBuilder.cs (1)
237lineSpan.Span);
Progression\GraphQueries\IsUsedByGraphQuery.cs (1)
58var 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)
255return Location.Create(location.SourceTree?.FilePath ?? string.Empty, location.SourceSpan, location.GetLineSpan().Span);