1 write to LineIndex
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\SourceSpan.cs (1)
34LineIndex = lineIndex;
44 references to LineIndex
Microsoft.CodeAnalysis.Razor.Compiler (41)
Language\CodeGeneration\CodeRenderingContextExtensions.cs (1)
129_span.LineIndex,
Language\CodeGeneration\CodeWriterExtensions.cs (3)
307.WriteIntegerLiteral(span.LineIndex + 1) 311.WriteIntegerLiteral(span.LineIndex + 1 + span.LineCount) 334.WriteIntegerLiteral(span.LineIndex + 1)
Language\Components\ComponentBindLoweringPass.cs (1)
1101span.LineIndex,
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (2)
903source.LineIndex, 1023sourceRangeStart.Value.LineIndex,
Language\DefaultTagHelperResolutionPhase.ComponentTagHelperResolver.cs (2)
1069.WithLineCount(lastSource.LineIndex - childSource.LineIndex)
Language\DefaultTagHelperResolutionPhase.cs (5)
806var lineCount = (last.LineIndex + last.LineCount) - first.LineIndex; 824first.LineIndex, 827last.LineIndex + last.LineCount - first.LineIndex,
Language\DefaultTagHelperResolutionPhase.LegacyTagHelperResolver.cs (9)
599attrSource.FilePath, valueStart, attrSource.LineIndex, valueCharIndex, 676var emptySource = new SourceSpan(atSrc.FilePath, transAbsIdx, atSrc.LineIndex, transCharIdx, 0, 0, transCharIdx); 679var transSource = new SourceSpan(atSrc.FilePath, transAbsIdx, atSrc.LineIndex, transCharIdx, 1, 0, transCharIdx + 1); 691var openSource = new SourceSpan(innerSource.FilePath, openAbsIndex, innerSource.LineIndex, openCharIndex, 1, 0, openCharIndex + 1); 704var closeSource = new SourceSpan(lastSource.FilePath, closeAbsIndex, lastSource.LineIndex, closeCharIndex, 1, 0, closeCharIndex + 1); 741attrSource.FilePath, openParenAbsIndex, attrSource.LineIndex, openParenCharIndex, 767attrSource.FilePath, closeParenAbsIndex, attrSource.LineIndex, closeParenCharIndex, 867attrSource.LineIndex, 1636diagSource.LineIndex,
Language\RazorDiagnostic.cs (2)
60builder.Append(span.LineIndex); 121return $"{span.FilePath}({span.LineIndex + 1},{span.CharacterIndex + 1}): {severity} {id}: {message}";
Language\SourceLocation.cs (1)
94new SourceLocation(span.Value.FilePath, span.Value.AbsoluteIndex, span.Value.LineIndex, span.Value.CharacterIndex);
Language\SourceSpan.cs (12)
66LineIndex == other.LineIndex && 81hash.Add(LineIndex); 93LineIndex, 101return new SourceSpan(FilePath, AbsoluteIndex + Length, LineIndex, characterIndex: EndCharacterIndex, length: 0, lineCount: 0, EndCharacterIndex); 106return new SourceSpan(FilePath, AbsoluteIndex + startIndex, LineIndex, CharacterIndex + startIndex, length, LineCount, endCharacterIndex: CharacterIndex + startIndex + length); 130public readonly SourceSpan WithFilePath(string filePath) => new(filePath, AbsoluteIndex, LineIndex, CharacterIndex, Length, LineCount, EndCharacterIndex); 131public readonly SourceSpan WithAbsoluteIndex(int absoluteIndex) => new(FilePath, absoluteIndex, LineIndex, CharacterIndex, Length, LineCount, EndCharacterIndex); 133public readonly SourceSpan WithCharacterIndex(int characterIndex) => new(FilePath, AbsoluteIndex, LineIndex, characterIndex, Length, LineCount, EndCharacterIndex); 134public readonly SourceSpan WithLength(int length) => new(FilePath, AbsoluteIndex, LineIndex, CharacterIndex, length, LineCount, EndCharacterIndex); 135public readonly SourceSpan WithLineCount(int lineCount) => new(FilePath, AbsoluteIndex, LineIndex, CharacterIndex, Length, lineCount, EndCharacterIndex); 136public readonly SourceSpan WithEndCharacterIndex(int endCharacterIndex) => new(FilePath, AbsoluteIndex, LineIndex, CharacterIndex, Length, LineCount, endCharacterIndex);
Mvc\InjectDirective.cs (1)
92typeSpan = 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)
118new LinePosition(span.LineIndex, span.CharacterIndex), 119new LinePosition(span.LineIndex, span.CharacterIndex + span.Length));
rzc (3)
Json\ObjectReaders.cs (1)
21var lineIndex = reader.ReadInt32OrZero(nameof(SourceSpan.LineIndex));
Json\ObjectWriters.cs (2)
23writer.WriteIfNotZero(nameof(span.LineIndex), span.LineIndex);