4 instantiations of Location
ILAssembler (4)
DocumentCompiler.cs (1)
42
diagnostics.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)
14
return new
Location
(span, sourceDocuments[token.TokenSource.InputStream.SourceName]);
8 references to Location
ILAssembler (8)
Diagnostic.cs (1)
16
public record Diagnostic(string Id, DiagnosticSeverity Severity, string Message,
Location
Location);
GrammarVisitor.cs (6)
124
var
location =
Location
.From(context.Start, _documents);
698
var
location = firstDoc is not null
1224
Location
.From(context.dottedName().Stop, _documents)));
3355
Location
.From(node, _documents)));
3380
Location
.From(node, _documents)));
Location.cs (1)
11
internal static
Location
From(Antlr4.Runtime.IToken token, IReadOnlyDictionary<string, SourceText> sourceDocuments)