4 instantiations of Location
ILAssembler (4)
DocumentCompiler.cs (1)
42diagnostics.Add(new Diagnostic("Preprocessor", DiagnosticSeverity.Error, msg, new Location(new(start, length), loadedDocuments[source])));
GrammarVisitor.cs (2)
699? new Location(new SourceSpan(0, 0), firstDoc) 700: new Location(new SourceSpan(0, 0), new SourceText(string.Empty, keyFilePath));
Location.cs (1)
14return new Location(span, sourceDocuments[token.TokenSource.InputStream.SourceName]);
8 references to Location
ILAssembler (8)
Diagnostic.cs (1)
16public record Diagnostic(string Id, DiagnosticSeverity Severity, string Message, Location Location);
GrammarVisitor.cs (6)
124var location = Location.From(context.Start, _documents); 698var location = firstDoc is not null 1224Location.From(context.dottedName().Stop, _documents))); 3355Location.From(node, _documents))); 3380Location.From(node, _documents)));
Location.cs (1)
11internal static Location From(Antlr4.Runtime.IToken token, IReadOnlyDictionary<string, SourceText> sourceDocuments)