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