5 instantiations of SourceText
ilasm (4)
Program.cs (4)
84var document = new SourceText(content, inputFiles[0]); 179return new SourceText(File.ReadAllText(path), path); 186return new SourceText(File.ReadAllText(fullPath), fullPath); 195return new SourceText(File.ReadAllText(fullPath), fullPath);
ILAssembler (1)
GrammarVisitor.cs (1)
700: new Location(new SourceSpan(0, 0), new SourceText(string.Empty, keyFilePath));
11 references to SourceText
ilasm (2)
Program.cs (2)
84var document = new SourceText(content, inputFiles[0]); 174SourceText LoadIncludedDocument(string path)
ILAssembler (9)
DocumentCompiler.cs (4)
16public (ImmutableArray<Diagnostic>, PEBuilder?) Compile(SourceText document, Func<string, SourceText> includedDocumentLoader, Func<string, byte[]> resourceLocator, Options options) 23Dictionary<string, SourceText> loadedDocuments = new() 29var includedDocument = includedDocumentLoader(path);
GrammarVisitor.cs (3)
80private readonly IReadOnlyDictionary<string, SourceText> _documents; 105public GrammarVisitor(IReadOnlyDictionary<string, SourceText> documents, Options options, Func<string, byte[]> resourceLocator) 697var firstDoc = _documents.Values.FirstOrDefault();
Location.cs (2)
9public record Location(SourceSpan Span, SourceText Source) 11internal static Location From(Antlr4.Runtime.IToken token, IReadOnlyDictionary<string, SourceText> sourceDocuments)