23 references to CSDiagnosticInfo
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder.cs (3)
541diagnostics.Add(new CSDiagnostic(new CSDiagnosticInfo(code), syntax.Location)); 551diagnostics.Add(new CSDiagnostic(new CSDiagnosticInfo(code), token.GetLocation())); 575diagnostics.Add(new CSDiagnostic(new CSDiagnosticInfo(code), location));
Binder\Binder_Await.cs (4)
161info = new CSDiagnosticInfo(ErrorCode.ERR_BadAwaitInStaticVariableInitializer); 179new CSDiagnosticInfo(ErrorCode.ERR_BadAwaitInQuery) : 185new CSDiagnosticInfo(ErrorCode.ERR_BadAwaitWithoutVoidAsyncMethod) : 193info = new CSDiagnosticInfo(ErrorCode.ERR_BadAwaitWithoutAsync);
Binder\Binder_Expressions.cs (3)
2496return new CSDiagnosticInfo(ErrorCode.ERR_ThisStructNotInAnonMeth); 7294diagnostics.Add(new CSDiagnosticInfo(ErrorCode.WRN_LowercaseEllSuffix), Location.Create(node.SyntaxTree, new TextSpan(token.Span.End - 1, 1))); 7298diagnostics.Add(new CSDiagnosticInfo(ErrorCode.WRN_LowercaseEllSuffix), Location.Create(node.SyntaxTree, new TextSpan(token.Span.End - 2, 1)));
Binder\Binder_Invocation.cs (1)
378diagnostics.Add(new CSDiagnosticInfo(ErrorCode.ERR_MethodNameExpected), expression.Location);
Binder\Binder_Symbols.cs (1)
2235var errorInfo = new CSDiagnosticInfo(ErrorCode.ERR_SystemVoid);
Binder\Binder_Unsafe.cs (1)
62? new CSDiagnosticInfo(ErrorCode.ERR_UnsafeNeeded)
Binder\BindingDiagnosticBag.cs (1)
156var info = new CSDiagnosticInfo(code);
Compiler\ClsComplianceChecker.cs (1)
1255var info = new CSDiagnosticInfo(code);
Emitter\Model\PEAssemblyBuilder.cs (1)
151context.Diagnostics.Add(new CSDiagnostic(new CSDiagnosticInfo(ErrorCode.ERR_CryptoHashFailed), NoLocation.Singleton));
Errors\CSDiagnosticInfo.cs (2)
17public static readonly DiagnosticInfo EmptyErrorInfo = new CSDiagnosticInfo(0); 18public static readonly DiagnosticInfo VoidDiagnosticInfo = new CSDiagnosticInfo(ErrorCode.Void);
Errors\DiagnosticBagExtensions.cs (1)
23var info = new CSDiagnosticInfo(code);
Errors\LazyMissingNonNullTypesContextDiagnosticInfo.cs (1)
78infos.Add(new CSDiagnosticInfo(code));
Symbols\ConstraintsHelper.cs (1)
955diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_RuntimeDoesNotSupportByRefLikeGenerics))));
Symbols\UnboundGenericType.cs (2)
42new CSDiagnosticInfo(ErrorCode.ERR_UnexpectedUnboundGenericName)); 60public static readonly ErrorTypeSymbol Instance = new UnboundArgumentErrorTypeSymbol(string.Empty, new CSDiagnosticInfo(ErrorCode.ERR_UnexpectedUnboundGenericName));