20 references to ERR_BogusType
Microsoft.CodeAnalysis.CSharp (20)
Emitter\Model\PEModuleBuilder.cs (1)
991diagnostics.Add(new CSDiagnostic(diagInfo ?? new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty), syntaxNodeOpt == null ? NoLocation.Singleton : syntaxNodeOpt.Location));
Errors\ErrorFacts.cs (1)
1008or ErrorCode.ERR_BogusType
Symbols\Attributes\PEAttributeData.cs (2)
187return new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty); 199return new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty);
Symbols\ConstraintsHelper.cs (2)
705args.Diagnostics.Add(ErrorCode.ERR_BogusType, args.Location, type); 743args.Diagnostics.Add(ErrorCode.ERR_BogusType, args.Location, type);
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
149return new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BogusType, this));
Symbols\Metadata\PE\PENamedTypeSymbol.cs (5)
209result._lazyCachedUseSiteInfo.Initialize(result.DeriveCompilerFeatureRequiredDiagnostic() ?? new CSDiagnosticInfo(ErrorCode.ERR_BogusType, result)); 269result._lazyCachedUseSiteInfo.Initialize(result.DeriveCompilerFeatureRequiredDiagnostic() ?? new CSDiagnosticInfo(ErrorCode.ERR_BogusType, result)); 356_lazyCachedUseSiteInfo.Initialize(DeriveCompilerFeatureRequiredDiagnostic() ?? new CSDiagnosticInfo(ErrorCode.ERR_BogusType, this)); 2129diagnostic = new CSDiagnosticInfo(ErrorCode.ERR_BogusType, this); 2724diagnostic = new CSDiagnosticInfo(ErrorCode.ERR_BogusType, this);
Symbols\MissingMetadataTypeSymbol.cs (1)
131return new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty);
Symbols\ParameterSymbol.cs (2)
432protected sealed override bool IsHighestPriorityUseSiteErrorCode(int code) => code is (int)ErrorCode.ERR_UnsupportedCompilerFeature or (int)ErrorCode.ERR_BogusType; 440return info.DiagnosticInfo?.Code is (int)ErrorCode.ERR_BogusType or (int)ErrorCode.ERR_UnsupportedCompilerFeature;
Symbols\Symbol.cs (2)
1200if (info.DiagnosticInfo?.Code == (int)ErrorCode.ERR_BogusType) 1223var 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; 527return (object)info != null && info.Code is (int)ErrorCode.ERR_UnsupportedCompilerFeature or (int)ErrorCode.ERR_BogusType;
Symbols\UnsupportedMetadataTypeSymbol.cs (1)
29return new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty);