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;
47 references to AbsoluteIndex
Microsoft.AspNetCore.Razor.Language.Legacy.UnitTests (1)
Legacy\ImplicitExpressionEditHandlerTest.cs (1)
455.CreateRed(parent: null, position: start.AbsoluteIndex);
Microsoft.AspNetCore.Razor.Language.UnitTests (8)
Legacy\SourceLocationTrackerTest.cs (6)
27Assert.Equal(26, result.AbsoluteIndex); 42Assert.Equal(26, currentLocation.AbsoluteIndex); 98Assert.Equal(11, currentLocation.AbsoluteIndex); 137Assert.Equal(11, currentLocation.AbsoluteIndex); 176Assert.Equal(11, currentLocation.AbsoluteIndex); 194var absoluteIndex = location.AbsoluteIndex;
SourceLocationTest.cs (2)
20Assert.Equal(0, loc.AbsoluteIndex); 39Assert.Equal(absoluteIndex, sourceLocation.AbsoluteIndex);
Microsoft.CodeAnalysis.Razor.Compiler (30)
Language\CodeGeneration\CodeRenderingContext.cs (2)
135AbsoluteIndex = CodeWriter.Location.AbsoluteIndex + offset, 143currentLocation.AbsoluteIndex,
Language\Extensions\DefaultTagHelperTargetExtension.cs (1)
621uniqueId = checksum + context.CodeWriter.Location.AbsoluteIndex;
Language\Legacy\CSharpCodeParser.cs (9)
990var bookmark = CurrentStart.AbsoluteIndex; 1203var index = CurrentStart.AbsoluteIndex - 1; 1204var lineStart = CurrentStart.AbsoluteIndex - CurrentStart.CharacterIndex; 1232directiveStart.AbsoluteIndex - 1, 1432original.AbsoluteIndex + offset, 1547directiveStart.AbsoluteIndex - 1, 2940var startPosition = CurrentStart.AbsoluteIndex; 2957startPosition = CurrentStart.AbsoluteIndex; 2974startPosition = CurrentStart.AbsoluteIndex;
Language\Legacy\HtmlMarkupParser.cs (3)
718var bookmark = CurrentStart.AbsoluteIndex; 2194var postSequenceBookmark = bookmark.AbsoluteIndex + preSequence.Content.Length + sequenceToken.Content.Length; 2207Context.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);
Microsoft.CodeAnalysis.Razor.Workspaces (8)
DocumentMapping\RazorEditService_Methods.cs (3)
50var insertAbsoluteIndex = closeBraceLocation.AbsoluteIndex; 53if (openBraceLine != closeBraceLine && closeBraceLocation.AbsoluteIndex > 0) 55var previousLineAbsoluteIndex = closeBraceLocation.AbsoluteIndex - closeBraceLocation.CharacterIndex - 1;
LinkedEditingRange\LinkedEditingRangeHelper.cs (5)
31(startTagNameToken.Span.Contains(validLocation.AbsoluteIndex) || endTagNameToken.Span.Contains(validLocation.AbsoluteIndex) || 32startTagNameToken.Span.End == validLocation.AbsoluteIndex || endTagNameToken.Span.End == validLocation.AbsoluteIndex)) 49var owner = syntaxTree.Root.FindInnermostNode(location.AbsoluteIndex);