2 writes to AbsoluteIndex
Microsoft.CodeAnalysis.Razor.Compiler (2)
Language\CodeGeneration\CodeRenderingContext.cs (1)
135AbsoluteIndex = CodeWriter.Location.AbsoluteIndex + offset,
Language\SourceLocation.cs (1)
58AbsoluteIndex = absoluteIndex;
30 references to AbsoluteIndex
Microsoft.CodeAnalysis.Razor.Compiler (30)
Language\CodeGeneration\CodeRenderingContext.cs (2)
135AbsoluteIndex = CodeWriter.Location.AbsoluteIndex + offset, 143currentLocation.AbsoluteIndex,
Language\Extensions\DefaultTagHelperTargetExtension.cs (1)
496uniqueId = checksum + context.CodeWriter.Location.AbsoluteIndex;
Language\Legacy\CSharpCodeParser.cs (9)
985var bookmark = CurrentStart.AbsoluteIndex; 1198var index = CurrentStart.AbsoluteIndex - 1; 1199var lineStart = CurrentStart.AbsoluteIndex - CurrentStart.CharacterIndex; 1227directiveStart.AbsoluteIndex - 1, 1427original.AbsoluteIndex + offset, 1542directiveStart.AbsoluteIndex - 1, 2931var startPosition = CurrentStart.AbsoluteIndex; 2948startPosition = CurrentStart.AbsoluteIndex; 2965startPosition = CurrentStart.AbsoluteIndex;
Language\Legacy\HtmlMarkupParser.cs (3)
712var bookmark = CurrentStart.AbsoluteIndex; 2188var postSequenceBookmark = bookmark.AbsoluteIndex + preSequence.Content.Length + sequenceToken.Content.Length; 2201Context.Source.Position = bookmark.AbsoluteIndex + preSequence.Content.Length;
Language\Legacy\RoslynCSharpTokenizer.cs (1)
583var start = CurrentStart.AbsoluteIndex + i;
Language\Legacy\SeekableTextReader.cs (4)
69_current = SourceText[_location.AbsoluteIndex]; 86_current = SourceText[_location.AbsoluteIndex]; 101_current = SourceText[_location.AbsoluteIndex]; 113_current = SourceText[_location.AbsoluteIndex];
Language\Legacy\SourceLocationTracker.cs (1)
16var absoluteIndex = location.AbsoluteIndex;
Language\RazorHtmlWriter.cs (1)
308var nextIndex = _codeWriter.Location.AbsoluteIndex + tildesToWrite;
Language\SourceLocation.cs (5)
26/// A <see cref="SourceLocation"/> with <see cref="AbsoluteIndex"/>, <see cref="LineIndex"/>, and 103AbsoluteIndex, 120hashCodeCombiner.Add(AbsoluteIndex); 129AbsoluteIndex == other.AbsoluteIndex &&
Language\SourceSpan.cs (1)
22: this(location.FilePath, location.AbsoluteIndex, location.LineIndex, location.CharacterIndex, contentLength, lineCount: 1, endCharacterIndex: 0)
Language\Syntax\SyntaxNodeExtensions.cs (2)
123return new SourceSpan(location.FilePath, location.AbsoluteIndex, location.LineIndex, location.CharacterIndex, node.Width, lineCount, endLocation.Character); 131return new SourceSpan(location.FilePath, location.AbsoluteIndex, location.LineIndex, location.CharacterIndex, token.Width, lineCount, endLocation.Character);