23 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)
2496
return new
CSDiagnosticInfo
(ErrorCode.ERR_ThisStructNotInAnonMeth);
7294
diagnostics.Add(new
CSDiagnosticInfo
(ErrorCode.WRN_LowercaseEllSuffix), Location.Create(node.SyntaxTree, new TextSpan(token.Span.End - 1, 1)));
7298
diagnostics.Add(new
CSDiagnosticInfo
(ErrorCode.WRN_LowercaseEllSuffix), Location.Create(node.SyntaxTree, new TextSpan(token.Span.End - 2, 1)));
Binder\Binder_Invocation.cs (1)
378
diagnostics.Add(new
CSDiagnosticInfo
(ErrorCode.ERR_MethodNameExpected), expression.Location);
Binder\Binder_Symbols.cs (1)
2235
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)
151
context.Diagnostics.Add(new CSDiagnostic(new
CSDiagnosticInfo
(ErrorCode.ERR_CryptoHashFailed), NoLocation.Singleton));
Errors\CSDiagnosticInfo.cs (2)
17
public static readonly DiagnosticInfo EmptyErrorInfo = new
CSDiagnosticInfo
(0);
18
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)
955
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));