78 references to Start
Microsoft.CodeAnalysis (6)
Diagnostic\DiagnosticFormatter.cs (2)
79return string.Format("({0},{1})", span.Start.Line + 1, span.Start.Character + 1);
Diagnostic\FileLinePositionSpan.cs (1)
79public LinePosition StartLinePosition => Span.Start;
Syntax\LineDirectiveMap.cs (2)
96unmapped.Line - entry.UnmappedLine + entry.MappedSpan.Start.Line, 98entry.MappedSpan.Start.Character + unmapped.Character - entry.UnmappedCharacterOffset.GetValueOrDefault() :
Text\TextLineCollection.cs (1)
78return TextSpan.FromBounds(GetPosition(span.Start), GetPosition(span.End));
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (1)
71text.Lines[diagnosticLinePositionSpan.Start.Line].Start,
Microsoft.CodeAnalysis.CSharp (5)
CommandLine\CommandLineDiagnosticFormatter.cs (4)
33span.Start.Line + 1, 34span.Start.Character + 1, 41span.Start.Line + 1, 42span.Start.Character + 1);
Parser\Blender.cs (1)
151var column = oldTree.SyntaxTree.GetLineSpan(new TextSpan(start, 0)).Span.Start.Character;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\LineSpanDirectiveTests.cs (1)
493return TextSpan.FromBounds(getTextPosition(lines, span.Start), getTextPosition(lines, span.End));
Microsoft.CodeAnalysis.EditorFeatures.Text (2)
Shared\Extensions\ITextSnapshotExtensions.cs (2)
36GetPosition(snapshot, span.Start.Line, span.Start.Character),
Microsoft.CodeAnalysis.EditorFeatures.Wpf (6)
Peek\PeekHelpers.cs (6)
20var label = string.Format("{0} - ({1}, {2})", fileName, identifierLocation.Start.Line + 1, identifierLocation.Start.Character + 1); 38startLine: entityOfInterestSpan.Start.Line, 39startIndex: entityOfInterestSpan.Start.Character, 42idLine: identifierLocation.Start.Line, 43idIndex: identifierLocation.Start.Character,
Microsoft.CodeAnalysis.Features (29)
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 (17)
222mappedSection.Span.Start, 225startPositionComparer: (x, y) => x.Span.Start.CompareTo(y)); 257var lineDifference = unmappedSection.Start.Line - mappedSection.Start.Line; 258var unmappedStartLine = mappedSpan.Start.Line + lineDifference; 261var unmappedStartColumn = (mappedSpan.Start.Line == mappedSection.Start.Line) 262? unmappedSection.Start.Character + mappedSpan.Start.Character - mappedSection.Start.Character 263: mappedSpan.Start.Character; 265var unmappedEndColumn = (mappedSpan.End.Line == mappedSection.Start.Line) 266? unmappedSection.Start.Character + mappedSpan.End.Character - mappedSection.Start.Character 274if (lineSpan.Start.Line >= lines.Count || lineSpan.End.Line >= lines.Count) 280var start = lines[lineSpan.Start.Line].Start + lineSpan.Start.Character;
EditAndContinue\Utilities\Extensions.cs (8)
19=> new(new LinePosition(span.Start.Line + lineDelta, span.Start.Character), new LinePosition(span.End.Line + lineDelta, span.End.Character)); 25=> newSpan.Start.Line - oldSpan.Start.Line; 28=> span.Start >= container.Start && span.End <= container.End; 34=> new(span.Start.Line, span.Start.Character, span.End.Line, span.End.Character);
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\ActiveStatementTestHelpers.cs (1)
114=> text.Lines[span.Start.Line].ToString().Trim();
Microsoft.CodeAnalysis.Features.UnitTests (3)
EditAndContinue\ActiveStatementsMapTests.cs (3)
42Assert.Equal(new Range(s, e), ActiveStatementsMap.GetSpansStartingInSpan(span.Start, span.End, array, startPositionComparer: (x, y) => x.Start.CompareTo(y))); 74Assert.Equal(new Range(s, e), ActiveStatementsMap.GetSpansStartingInSpan(span.Start, span.End, array, startPositionComparer: (x, y) => x.Start.CompareTo(y))); 87Assert.Equal(new Range(s, e), ActiveStatementsMap.GetSpansStartingInSpan(span.Start, span.End, array, startPositionComparer: (x, y) => x.Start.CompareTo(y)));
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Extensions\ProtocolConversions.cs (1)
347=> new LSP.Range { Start = LinePositionToPosition(linePositionSpan.Start), End = LinePositionToPosition(linePositionSpan.End) };
Handler\Diagnostics\DiagnosticsPullCache.cs (1)
113WriteLinePosition(span.Start, writer);
Handler\FoldingRanges\FoldingRangesHandler.cs (3)
101if (linePositionSpan.Start.Line == linePositionSpan.End.Line) 119StartLine = linePositionSpan.Start.Line, 120StartCharacter = linePositionSpan.Start.Character,
Handler\SemanticTokens\SemanticTokensHelpers.cs (1)
295var linePosition = lines.GetLinePositionSpan(originalTextSpan).Start;
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
Diagnostics\AbstractPullDiagnosticTestsBase.cs (2)
228await testLspServer.InsertTextAsync(document.GetURI(), (lineInfo.Start.Line, lineInfo.Start.Character, text));
SpellCheck\SpellCheckTests.cs (2)
653await testLspServer.InsertTextAsync(document.GetURI(), (lineInfo.Start.Line, lineInfo.Start.Character, text));
Microsoft.CodeAnalysis.VisualBasic (1)
Errors\DiagnosticFormatter.vb (1)
19Return "(" & (span.Start.Line + 1).ToString() & ") "
Microsoft.CodeAnalysis.Workspaces (2)
Shared\Extensions\FileLinePositionSpanExtensions.cs (2)
44var startLine = span.Start.Line; 48var startColumn = Math.Max(span.Start.Character, 0);
Microsoft.Maui.Controls.BindingSourceGen (2)
BindingInvocationDescription.cs (2)
29 return new InterceptorLocation(FilePath, LineSpan.Start.Line + 1, LineSpan.Start.Character + 1);
Microsoft.VisualStudio.LanguageServices (9)
Diagnostics\VisualStudioVenusSpanMappingService.cs (5)
49if (originalSpan.Start != originalLineInfo.StartLinePosition || originalSpan.End != originalLineInfo.EndLinePosition) 51originalLineInfo = new FileLinePositionSpan(originalLineInfo.Path, originalSpan.Start, originalSpan.End); 57var startPos = textLines.GetPosition(originalSpan.Start); 64if (mappedSpan.Start != mappedLineInfo.StartLinePosition || mappedSpan.End != mappedLineInfo.EndLinePosition) 66mappedLineInfo = new FileLinePositionSpan(mappedLineInfo.Path, mappedSpan.Start, mappedSpan.End);
DocumentOutline\DocumentOutlineViewModel_Utilities.cs (2)
154return childRange.Start > parentRange.Start && childRange.End <= parentRange.End;
Progression\GraphBuilder.cs (2)
791new Position(span.Start.Line, span.Start.Character),