7 references to Create
Microsoft.CodeAnalysis (5)
CommandLine\CommonCompiler.cs (2)
376
diagnostics.Add(Diagnostic.
Create
(ToFileReadDiagnostics(MessageProvider, e, filePath)));
599
=> ReportDiagnostics(diagnostics.Select(info => Diagnostic.
Create
(info)), consoleOutput, errorLoggerOpt, compilation);
Diagnostic\Diagnostic.cs (2)
282
return
Create
(new DiagnosticInfo(messageProvider, errorCode));
287
return
Create
(new DiagnosticInfo(messageProvider, errorCode, arguments));
Syntax\SyntaxToken.cs (1)
26
private static readonly Func<DiagnosticInfo, Diagnostic> s_createDiagnosticWithoutLocation = Diagnostic.
Create
;
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineRunner.cs (1)
127
var errors = _compiler.Arguments.Errors.Concat(diagnosticsInfos.Select(Diagnostic.
Create
));
Microsoft.CodeAnalysis.VisualBasic (1)
VisualBasicParseOptions.vb (1)
256
builder.Add(Diagnostic.
Create
(ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid,