6 instantiations of new
ILAssembler (6)
DocumentCompiler.cs (3)
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)))); 107var span = new SourceSpan(offendingSymbol?.StartIndex ?? 0, offendingSymbol is null ? 0 : offendingSymbol.StopIndex - offendingSymbol.StartIndex + 1);
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)
13SourceSpan span = new(token.StartIndex, token.StopIndex - token.StartIndex + 1);
3 references to new
ILAssembler (3)
DocumentCompiler.cs (1)
107var span = new SourceSpan(offendingSymbol?.StartIndex ?? 0, offendingSymbol is null ? 0 : offendingSymbol.StopIndex - offendingSymbol.StartIndex + 1);
Location.cs (2)
9public record Location(SourceSpan Span, SourceText Source) 13SourceSpan span = new(token.StartIndex, token.StopIndex - token.StartIndex + 1);