1 write to EndCharacterIndex
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\SourceSpan.cs (1)
39EndCharacterIndex = endCharacterIndex;
25 references to EndCharacterIndex
Microsoft.AspNetCore.Razor.Language.UnitTests (4)
DefaultTagHelperResolutionPhaseTest.cs (4)
28Assert.Equal(14, result.EndCharacterIndex); // taken from last 51Assert.Equal(7, result.EndCharacterIndex); // end column from last 70Assert.Equal(12, result.EndCharacterIndex); 89Assert.Equal(8, result.EndCharacterIndex);
Microsoft.CodeAnalysis.Razor.Compiler (20)
Language\CodeGeneration\CodeRenderingContext.cs (1)
139var endCharacterIndex = (source.LineCount == 0) ? currentLocation.CharacterIndex + source.Length : source.EndCharacterIndex;
Language\CodeGeneration\CodeWriterExtensions.cs (1)
313.WriteIntegerLiteral(span.EndCharacterIndex + 1)
Language\Components\ComponentBindLoweringPass.cs (1)
1098span.EndCharacterIndex);
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (2)
907source.EndCharacterIndex); 1027sourceRangeStart.Value.EndCharacterIndex);
Language\DefaultTagHelperResolutionPhase.cs (2)
812.WithEndCharacterIndex(last.EndCharacterIndex); 830last.EndCharacterIndex);
Language\DefaultTagHelperResolutionPhase.LegacyTagHelperResolver.cs (3)
597var valueEndCharIndex = attrSource.EndCharacterIndex - suffix.Length; 703var closeCharIndex = lastSource.EndCharacterIndex; 1620diagSource.EndCharacterIndex);
Language\RazorDiagnostic.cs (1)
64builder.Append(span.EndCharacterIndex);
Language\SourceSpan.cs (8)
101return new SourceSpan(FilePath, AbsoluteIndex + Length, LineIndex, characterIndex: EndCharacterIndex, length: 0, lineCount: 0, EndCharacterIndex); 130public readonly SourceSpan WithFilePath(string filePath) => new(filePath, AbsoluteIndex, LineIndex, CharacterIndex, Length, LineCount, EndCharacterIndex); 131public readonly SourceSpan WithAbsoluteIndex(int absoluteIndex) => new(FilePath, absoluteIndex, LineIndex, CharacterIndex, Length, LineCount, EndCharacterIndex); 132public readonly SourceSpan WithLineIndex(int lineIndex) => new(FilePath, AbsoluteIndex, lineIndex, CharacterIndex, Length, LineCount, EndCharacterIndex); 133public readonly SourceSpan WithCharacterIndex(int characterIndex) => new(FilePath, AbsoluteIndex, LineIndex, characterIndex, Length, LineCount, EndCharacterIndex); 134public readonly SourceSpan WithLength(int length) => new(FilePath, AbsoluteIndex, LineIndex, CharacterIndex, length, LineCount, EndCharacterIndex); 135public readonly SourceSpan WithLineCount(int lineCount) => new(FilePath, AbsoluteIndex, LineIndex, CharacterIndex, Length, lineCount, EndCharacterIndex);
Mvc\InjectDirective.cs (1)
92typeSpan = new SourceSpan(typeSpan.Value.FilePath, typeSpan.Value.AbsoluteIndex, typeSpan.Value.LineIndex, typeSpan.Value.CharacterIndex, typeSpan.Value.Length - tModel.Length, typeSpan.Value.LineCount, typeSpan.Value.EndCharacterIndex - tModel.Length);
Microsoft.CodeAnalysis.Razor.Workspaces (1)
Extensions\SourceSpanExtensions.cs (1)
17var end = new LinePosition(span.LineIndex + span.LineCount, span.EndCharacterIndex);