2 writes to CharacterIndex
Microsoft.CodeAnalysis.Razor.Compiler (2)
Language\CodeGeneration\CodeRenderingContext.cs (1)
136CharacterIndex = CodeWriter.Location.CharacterIndex + offset
Language\SourceLocation.cs (1)
60CharacterIndex = characterIndex;
16 references to CharacterIndex
Microsoft.CodeAnalysis.Razor.Compiler (16)
Language\CodeGeneration\CodeRenderingContext.cs (3)
136CharacterIndex = CodeWriter.Location.CharacterIndex + offset 139var endCharacterIndex = (source.LineCount == 0) ? currentLocation.CharacterIndex + source.Length : source.EndCharacterIndex; 145currentLocation.CharacterIndex,
Language\Legacy\CSharpCodeParser.cs (5)
1196if (CurrentStart.CharacterIndex > 1) 1199var lineStart = CurrentStart.AbsoluteIndex - CurrentStart.CharacterIndex; 1229directiveStart.CharacterIndex - 1); 1429original.CharacterIndex + offset); 1544directiveStart.CharacterIndex - 1);
Language\Legacy\SourceLocationTracker.cs (1)
18var characterIndex = location.CharacterIndex;
Language\SourceLocation.cs (4)
27/// <see cref="CharacterIndex"/> initialized to 0. 105CharacterIndex); 131CharacterIndex == other.CharacterIndex;
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);