7 instantiations of Location
ILAssembler (7)
DocumentCompiler.cs (4)
50diagnostics.Add(new Diagnostic("Preprocessor", DiagnosticSeverity.Error, msg, new Location(new(start, length), sourceText))); 54diagnostics.Add(new Diagnostic("Preprocessor", DiagnosticSeverity.Error, msg, new Location(new(start, length), new SourceText("", source)))); 110_diagnostics.Add(new Diagnostic("Parser", DiagnosticSeverity.Error, $"line {line}:{charPositionInLine} {msg}", new Location(span, sourceText))); 114_diagnostics.Add(new Diagnostic("Parser", DiagnosticSeverity.Error, $"line {line}:{charPositionInLine} {msg}", new Location(span, new SourceText("", sourceName))));
GrammarVisitor.cs (2)
733? new Location(new SourceSpan(0, 0), firstDoc) 734: 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)
14public record Diagnostic(string Id, DiagnosticSeverity Severity, string Message, Location Location);
GrammarVisitor.cs (6)
126var location = Location.From(context.Start, _documents); 732var location = firstDoc is not null 1427Location.From(context.dottedName().Stop, _documents))); 3798Location.From(node, _documents))); 3823Location.From(node, _documents)));
Location.cs (1)
11internal static Location From(Antlr4.Runtime.IToken token, IReadOnlyDictionary<string, SourceText> sourceDocuments)