1 write to SourceText
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Legacy\SeekableTextReader.cs (1)
29SourceText = sourceText;
18 references to SourceText
Microsoft.CodeAnalysis.Razor.Compiler (18)
Language\Legacy\RoslynCSharpTokenizer.cs (4)
44_roslynTokenParser = CodeAnalysis.CSharp.SyntaxFactory.CreateTokenParser(source.SourceText, parseOptions); 73var currentChar = Source.SourceText[i]; 587var linePosition = Source.SourceText.Lines.GetLinePosition(start); 600var linePosition = Source.SourceText.Lines.GetLinePosition(start);
Language\Legacy\SeekableTextReader.cs (14)
31_cachedLineInfo = (SourceText.Lines[0].Span, 0); 37public int Length => SourceText.Length; 69_current = SourceText[_location.AbsoluteIndex]; 74if (_position < SourceText.Length) 80var nextLineSpan = SourceText.Lines[nextLineIndex].Span; 86_current = SourceText[_location.AbsoluteIndex]; 95var prevLineSpan = SourceText.Lines[prevLineIndex].Span; 101_current = SourceText[_location.AbsoluteIndex]; 108_location = new SourceLocation(_filePath, _position, SourceText.Lines.GetLinePosition(_position)); 110var lineSpan = SourceText.Lines[_location.LineIndex].Span; 113_current = SourceText[_location.AbsoluteIndex]; 118if (SourceText.Length == 0) 126var lineNumber = SourceText.Lines.Count - 1; 127_location = new SourceLocation(_filePath, Length, lineNumber, SourceText.Lines[lineNumber].Span.Length);