20 references to ERR_BogusType
Microsoft.CodeAnalysis.CSharp (20)
Emitter\Model\PEModuleBuilder.cs (1)
991
diagnostics.Add(new CSDiagnostic(diagInfo ?? new CSDiagnosticInfo(ErrorCode.
ERR_BogusType
, string.Empty), syntaxNodeOpt == null ? NoLocation.Singleton : syntaxNodeOpt.Location));
Errors\ErrorFacts.cs (1)
1005
or ErrorCode.
ERR_BogusType
Symbols\Attributes\PEAttributeData.cs (2)
186
return new CSDiagnosticInfo(ErrorCode.
ERR_BogusType
, string.Empty);
198
return new CSDiagnosticInfo(ErrorCode.
ERR_BogusType
, string.Empty);
Symbols\ConstraintsHelper.cs (2)
705
args.Diagnostics.Add(ErrorCode.
ERR_BogusType
, args.Location, type);
743
args.Diagnostics.Add(ErrorCode.
ERR_BogusType
, args.Location, type);
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
149
return new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.
ERR_BogusType
, this));
Symbols\Metadata\PE\PENamedTypeSymbol.cs (5)
208
result._lazyCachedUseSiteInfo.Initialize(result.DeriveCompilerFeatureRequiredDiagnostic() ?? new CSDiagnosticInfo(ErrorCode.
ERR_BogusType
, result));
268
result._lazyCachedUseSiteInfo.Initialize(result.DeriveCompilerFeatureRequiredDiagnostic() ?? new CSDiagnosticInfo(ErrorCode.
ERR_BogusType
, result));
355
_lazyCachedUseSiteInfo.Initialize(DeriveCompilerFeatureRequiredDiagnostic() ?? new CSDiagnosticInfo(ErrorCode.
ERR_BogusType
, this));
2128
diagnostic = new CSDiagnosticInfo(ErrorCode.
ERR_BogusType
, this);
2723
diagnostic = new CSDiagnosticInfo(ErrorCode.
ERR_BogusType
, this);
Symbols\MissingMetadataTypeSymbol.cs (1)
131
return new CSDiagnosticInfo(ErrorCode.
ERR_BogusType
, string.Empty);
Symbols\ParameterSymbol.cs (2)
432
protected sealed override bool IsHighestPriorityUseSiteErrorCode(int code) => code is (int)ErrorCode.ERR_UnsupportedCompilerFeature or (int)ErrorCode.
ERR_BogusType
;
440
return info.DiagnosticInfo?.Code is (int)ErrorCode.
ERR_BogusType
or (int)ErrorCode.ERR_UnsupportedCompilerFeature;
Symbols\Symbol.cs (2)
1200
if (info.DiagnosticInfo?.Code == (int)ErrorCode.
ERR_BogusType
)
1223
var useSiteInfo = new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.
ERR_BogusType
, string.Empty));
Symbols\TypeSymbol.cs (2)
520
=> code is (int)ErrorCode.ERR_UnsupportedCompilerFeature or (int)ErrorCode.
ERR_BogusType
;
527
return (object)info != null && info.Code is (int)ErrorCode.ERR_UnsupportedCompilerFeature or (int)ErrorCode.
ERR_BogusType
;
Symbols\UnsupportedMetadataTypeSymbol.cs (1)
29
return new CSDiagnosticInfo(ErrorCode.
ERR_BogusType
, string.Empty);