1 write to CharacterIndex
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\SourceSpan.cs (1)
35
CharacterIndex
= characterIndex;
42 references to CharacterIndex
Microsoft.CodeAnalysis.Razor.Compiler (39)
Language\CodeGeneration\CodeWriterExtensions.cs (1)
309
.WriteIntegerLiteral(span.
CharacterIndex
+ 1)
Language\Components\ComponentBindLoweringPass.cs (1)
1102
span.
CharacterIndex
+ offset,
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (2)
904
source.
CharacterIndex
,
1024
sourceRangeStart.Value.
CharacterIndex
,
Language\DefaultTagHelperResolutionPhase.ComponentTagHelperResolver.cs (6)
199
.WithCharacterIndex(ns.
CharacterIndex
+ 1)
209
.WithEndCharacterIndex(ps.
CharacterIndex
+ nameWithoutParamLen);
872
.WithCharacterIndex(nameSpan.
CharacterIndex
+ 1)
1039
var nameCharIndex = attrSource.
CharacterIndex
+ nameIndex;
1065
var endCharIndex = lastSource.
CharacterIndex
+ lastSource.Length;
1092
var valueCharIndex = attrSource.
CharacterIndex
+ valueStart;
Language\DefaultTagHelperResolutionPhase.cs (4)
825
first.
CharacterIndex
,
1007
.WithCharacterIndex(s.
CharacterIndex
- prefixLength)
1102
.WithCharacterIndex(ets.
CharacterIndex
+ 2)
1105
.WithEndCharacterIndex(ets.
CharacterIndex
+ 2 + tagName.Length);
Language\DefaultTagHelperResolutionPhase.LegacyTagHelperResolver.cs (7)
596
var valueCharIndex = attrSource.
CharacterIndex
+ prefix.Length + (attrSource.AbsoluteIndex + prefix.Length < valueStart ? 1 : 0);
674
var transCharIdx = atSrc.
CharacterIndex
+ 2;
690
var openCharIndex = innerSource.
CharacterIndex
- 1;
739
var openParenCharIndex = attrSource.
CharacterIndex
+ prefix.Length + 1;
765
var closeParenCharIndex = attrSource.
CharacterIndex
+ prefix.Length + valueLength - 1;
862
var valueCharIndex = attrSource.
CharacterIndex
+ prefix.Length;
1637
diagSource.
CharacterIndex
- 1,
Language\RazorDiagnostic.cs (2)
61
builder.Append(span.
CharacterIndex
);
121
return $"{span.FilePath}({span.LineIndex + 1},{span.
CharacterIndex
+ 1}): {severity} {id}: {message}";
Language\SourceLocation.cs (1)
94
new SourceLocation(span.Value.FilePath, span.Value.AbsoluteIndex, span.Value.LineIndex, span.Value.
CharacterIndex
);
Language\SourceSpan.cs (12)
67
CharacterIndex
== other.
CharacterIndex
&&
82
hash.Add(
CharacterIndex
);
94
CharacterIndex
,
106
return new SourceSpan(FilePath, AbsoluteIndex + startIndex, LineIndex,
CharacterIndex
+ startIndex, length, LineCount, endCharacterIndex:
CharacterIndex
+ startIndex + length);
130
public readonly SourceSpan WithFilePath(string filePath) => new(filePath, AbsoluteIndex, LineIndex,
CharacterIndex
, Length, LineCount, EndCharacterIndex);
131
public readonly SourceSpan WithAbsoluteIndex(int absoluteIndex) => new(FilePath, absoluteIndex, LineIndex,
CharacterIndex
, Length, LineCount, EndCharacterIndex);
132
public readonly SourceSpan WithLineIndex(int lineIndex) => new(FilePath, AbsoluteIndex, lineIndex,
CharacterIndex
, Length, LineCount, EndCharacterIndex);
134
public readonly SourceSpan WithLength(int length) => new(FilePath, AbsoluteIndex, LineIndex,
CharacterIndex
, length, LineCount, EndCharacterIndex);
135
public readonly SourceSpan WithLineCount(int lineCount) => new(FilePath, AbsoluteIndex, LineIndex,
CharacterIndex
, Length, lineCount, EndCharacterIndex);
136
public readonly SourceSpan WithEndCharacterIndex(int endCharacterIndex) => new(FilePath, AbsoluteIndex, LineIndex,
CharacterIndex
, Length, LineCount, endCharacterIndex);
Mvc\InjectDirective.cs (1)
92
typeSpan = 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);
SourceGenerators\Diagnostics\RazorDiagnostics.cs (2)
118
new LinePosition(span.LineIndex, span.
CharacterIndex
),
119
new LinePosition(span.LineIndex, span.
CharacterIndex
+ span.Length));
rzc (3)
Json\ObjectReaders.cs (1)
22
var characterIndex = reader.ReadInt32OrZero(nameof(SourceSpan.
CharacterIndex
));
Json\ObjectWriters.cs (2)
24
writer.WriteIfNotZero(nameof(span.
CharacterIndex
), span.
CharacterIndex
);