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