28 references to CSDiagnosticInfo
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder.cs (3)
541
diagnostics.Add(new CSDiagnostic(new
CSDiagnosticInfo
(code), syntax.Location));
551
diagnostics.Add(new CSDiagnostic(new
CSDiagnosticInfo
(code), token.GetLocation()));
575
diagnostics.Add(new CSDiagnostic(new
CSDiagnosticInfo
(code), location));
Binder\Binder_Await.cs (4)
161
info = new
CSDiagnosticInfo
(ErrorCode.ERR_BadAwaitInStaticVariableInitializer);
179
new
CSDiagnosticInfo
(ErrorCode.ERR_BadAwaitInQuery) :
185
new
CSDiagnosticInfo
(ErrorCode.ERR_BadAwaitWithoutVoidAsyncMethod) :
193
info = new
CSDiagnosticInfo
(ErrorCode.ERR_BadAwaitWithoutAsync);
Binder\Binder_Expressions.cs (3)
2546
return new
CSDiagnosticInfo
(ErrorCode.ERR_ThisStructNotInAnonMeth);
7357
diagnostics.Add(new
CSDiagnosticInfo
(ErrorCode.WRN_LowercaseEllSuffix), Location.Create(node.SyntaxTree, new TextSpan(token.Span.End - 1, 1)));
7361
diagnostics.Add(new
CSDiagnosticInfo
(ErrorCode.WRN_LowercaseEllSuffix), Location.Create(node.SyntaxTree, new TextSpan(token.Span.End - 2, 1)));
Binder\Binder_Invocation.cs (1)
380
diagnostics.Add(new
CSDiagnosticInfo
(ErrorCode.ERR_MethodNameExpected), expression.Location);
Binder\Binder_Symbols.cs (1)
2301
var errorInfo = new
CSDiagnosticInfo
(ErrorCode.ERR_SystemVoid);
Binder\Binder_Unsafe.cs (1)
62
? new
CSDiagnosticInfo
(ErrorCode.ERR_UnsafeNeeded)
Binder\BindingDiagnosticBag.cs (1)
156
var info = new
CSDiagnosticInfo
(code);
Compiler\ClsComplianceChecker.cs (1)
1255
var info = new
CSDiagnosticInfo
(code);
Emitter\Model\PEAssemblyBuilder.cs (1)
156
context.Diagnostics.Add(new CSDiagnostic(new
CSDiagnosticInfo
(ErrorCode.ERR_CryptoHashFailed), NoLocation.Singleton));
Errors\CSDiagnosticInfo.cs (2)
18
public static readonly DiagnosticInfo EmptyErrorInfo = new
CSDiagnosticInfo
(0);
19
public static readonly DiagnosticInfo VoidDiagnosticInfo = new
CSDiagnosticInfo
(ErrorCode.Void);
Errors\DiagnosticBagExtensions.cs (1)
23
var info = new
CSDiagnosticInfo
(code);
Errors\LazyMissingNonNullTypesContextDiagnosticInfo.cs (1)
78
infos.Add(new
CSDiagnosticInfo
(code));
Symbols\ConstraintsHelper.cs (1)
979
diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new
CSDiagnosticInfo
(ErrorCode.ERR_RuntimeDoesNotSupportByRefLikeGenerics))));
Symbols\UnboundGenericType.cs (2)
42
new
CSDiagnosticInfo
(ErrorCode.ERR_UnexpectedUnboundGenericName));
60
public static readonly ErrorTypeSymbol Instance = new UnboundArgumentErrorTypeSymbol(string.Empty, new
CSDiagnosticInfo
(ErrorCode.ERR_UnexpectedUnboundGenericName));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
12567
new CSDiagnostic(new
CSDiagnosticInfo
(ErrorCode.WRN_LowercaseEllSuffix), Location.None).GetMessage(CultureInfo.InvariantCulture),
12607
new CSDiagnostic(new
CSDiagnosticInfo
(ErrorCode.WRN_EmptySwitch), Location.None).GetMessage(CultureInfo.InvariantCulture),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenTests.cs (1)
13295
diagnostics.Add(new CSDiagnostic(new
CSDiagnosticInfo
(ErrorCode.ERR_IntDivByZero), NoLocation.Singleton));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Diagnostics\DiagnosticTest.cs (1)
115
verifyWithSeverity(new
CSDiagnosticInfo
(ErrorCode.ERR_AbstractField));
Syntax\GreenNodeTests.cs (1)
17
var nodeWithDiags = node.SetDiagnostics(new DiagnosticInfo[] { new
CSDiagnosticInfo
(ErrorCode.ERR_NoBaseClass) });