6 references to Create
Microsoft.CodeAnalysis (5)
CommandLine\CommonCompiler.cs (2)
379diagnostics.Add(Diagnostic.Create(ToFileReadDiagnostics(MessageProvider, e, filePath))); 602=> ReportDiagnostics(diagnostics.Select(info => Diagnostic.Create(info)), consoleOutput, errorLoggerOpt, compilation);
Diagnostic\Diagnostic.cs (2)
283return Create(new DiagnosticInfo(messageProvider, errorCode)); 288return Create(new DiagnosticInfo(messageProvider, errorCode, arguments));
Syntax\SyntaxToken.cs (1)
24private static readonly Func<DiagnosticInfo, Diagnostic> s_createDiagnosticWithoutLocation = Diagnostic.Create;
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineRunner.cs (1)
130var errors = Compiler.Arguments.Errors.Concat(diagnosticsInfos.Select(Diagnostic.Create));