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