28 references to ERR_BindToBogus
Microsoft.CodeAnalysis.CSharp (28)
Binder\Binder_Expressions.cs (1)
8525
Error(diagnostics, ErrorCode.
ERR_BindToBogus
, node, fieldSymbol);
Compilation\CSharpCompilation.cs (1)
3715
diagnostics.Add(new CSDiagnosticInfo(ErrorCode.
ERR_BindToBogus
, m), NoLocation.Singleton);
Emitter\Model\PEAssemblyBuilder.cs (1)
188
diagnostics.Add(new CSDiagnosticInfo(ErrorCode.
ERR_BindToBogus
, modules[i]), NoLocation.Singleton);
Errors\ErrorFacts.cs (1)
606
or ErrorCode.
ERR_BindToBogus
Symbols\EventSymbol.cs (2)
310
protected sealed override bool IsHighestPriorityUseSiteErrorCode(int code) => code is (int)ErrorCode.ERR_UnsupportedCompilerFeature or (int)ErrorCode.
ERR_BindToBogus
;
317
return (object?)info != null && info.Code is (int)ErrorCode.
ERR_BindToBogus
or (int)ErrorCode.ERR_UnsupportedCompilerFeature;
Symbols\FieldSymbol.cs (2)
383
protected sealed override bool IsHighestPriorityUseSiteErrorCode(int code) => code is (int)ErrorCode.ERR_UnsupportedCompilerFeature or (int)ErrorCode.
ERR_BindToBogus
;
390
return (object)info != null && info.Code is (int)ErrorCode.
ERR_BindToBogus
or (int)ErrorCode.ERR_UnsupportedCompilerFeature;
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
792
MergeUseSiteInfo(ref info, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.
ERR_BindToBogus
, this)));
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
147
if (fromSignature.DiagnosticInfo?.Code == (int)ErrorCode.
ERR_BindToBogus
&& fromSignature.DiagnosticInfo.Arguments.AsSingleton() == (object)Signature)
Symbols\Metadata\PE\PEEventSymbol.cs (1)
82
_lazyCachedUseSiteInfo.Initialize(new CSDiagnosticInfo(ErrorCode.
ERR_BindToBogus
, this));
Symbols\Metadata\PE\PEFieldSymbol.cs (2)
158
_lazyCachedUseSiteInfo.Initialize(new CSDiagnosticInfo(ErrorCode.
ERR_BindToBogus
, this));
639
MergeUseSiteInfo(ref result, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.
ERR_BindToBogus
, this)));
Symbols\Metadata\PE\PEMethodSymbol.cs (4)
430
InitializeUseSiteDiagnostic(new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.
ERR_BindToBogus
, this)));
883
InitializeUseSiteDiagnostic(new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.
ERR_BindToBogus
, this)));
956
diagnosticInfo = new CSDiagnosticInfo(ErrorCode.
ERR_BindToBogus
, this);
1449
diagnosticInfo = new CSDiagnosticInfo(ErrorCode.
ERR_BindToBogus
, this);
Symbols\Metadata\PE\PEPropertySymbol.cs (2)
214
result.AccessUncommonFields()._lazyCachedUseSiteInfo.Initialize(new CSDiagnosticInfo(ErrorCode.
ERR_BindToBogus
, result));
270
AccessUncommonFields()._lazyCachedUseSiteInfo.Initialize(new CSDiagnosticInfo(ErrorCode.
ERR_BindToBogus
, this));
Symbols\Metadata\PE\PETypeParameterSymbol.cs (3)
90
_lazyCachedConstraintsUseSiteInfo.Initialize(new CSDiagnosticInfo(ErrorCode.
ERR_BindToBogus
, this));
239
_lazyCachedConstraintsUseSiteInfo.InterlockedInitializeFromSentinel(primaryDependency: null, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.
ERR_BindToBogus
, this)));
419
_lazyCachedConstraintsUseSiteInfo.InterlockedInitializeFromSentinel(primaryDependency: null, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.
ERR_BindToBogus
, this)));
Symbols\MethodSymbol.cs (2)
1075
protected sealed override bool IsHighestPriorityUseSiteErrorCode(int code) => code is (int)ErrorCode.ERR_UnsupportedCompilerFeature or (int)ErrorCode.
ERR_BindToBogus
;
1082
return (object)info != null && info.Code is (int)ErrorCode.
ERR_BindToBogus
or (int)ErrorCode.ERR_UnsupportedCompilerFeature;
Symbols\PropertySymbol.cs (2)
433
protected sealed override bool IsHighestPriorityUseSiteErrorCode(int code) => code is (int)ErrorCode.ERR_UnsupportedCompilerFeature or (int)ErrorCode.
ERR_BindToBogus
;
440
return (object)info != null && info.Code is (int)ErrorCode.
ERR_BindToBogus
or (int)ErrorCode.ERR_UnsupportedCompilerFeature;
Symbols\Source\SourceAssemblySymbol.cs (1)
1043
diagnostics.Add(new CSDiagnosticInfo(ErrorCode.
ERR_BindToBogus
, m), NoLocation.Singleton);
Symbols\Symbol.cs (1)
1216
info = info.AdjustDiagnosticInfo(new CSDiagnosticInfo(ErrorCode.
ERR_BindToBogus
, this));