21 references to ERR_BogusType
Microsoft.CodeAnalysis.CSharp (21)
Emitter\Model\PEModuleBuilder.cs (1)
1143diagnostics.Add(new CSDiagnostic(diagInfo ?? new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty), syntaxNodeOpt == null ? NoLocation.Singleton : syntaxNodeOpt.Location));
Errors\ErrorFacts.cs (1)
1025or 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)
712args.Diagnostics.Add(ErrorCode.ERR_BogusType, args.Location, type); 749args.Diagnostics.Add(ErrorCode.ERR_BogusType, args.Location, type);
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
150return new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BogusType, this));
Symbols\Metadata\PE\PENamedTypeSymbol.cs (6)
238result._lazyCachedUseSiteInfo.Initialize(result.DeriveCompilerFeatureRequiredDiagnostic() ?? new CSDiagnosticInfo(ErrorCode.ERR_BogusType, result)); 302result._lazyCachedUseSiteInfo.Initialize(result.DeriveCompilerFeatureRequiredDiagnostic() ?? new CSDiagnosticInfo(ErrorCode.ERR_BogusType, result)); 402_lazyCachedUseSiteInfo.Initialize(DeriveCompilerFeatureRequiredDiagnostic() ?? new CSDiagnosticInfo(ErrorCode.ERR_BogusType, this)); 2737diagnostic = new CSDiagnosticInfo(ErrorCode.ERR_BogusType, this); 3359diagnostic = new CSDiagnosticInfo(ErrorCode.ERR_BogusType, this); 3363diagnostic = new CSDiagnosticInfo(ErrorCode.ERR_BogusType, this);
Symbols\MissingMetadataTypeSymbol.cs (1)
131return new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty);
Symbols\ParameterSymbol.cs (2)
455protected sealed override bool IsHighestPriorityUseSiteErrorCode(int code) => code is (int)ErrorCode.ERR_UnsupportedCompilerFeature or (int)ErrorCode.ERR_BogusType; 463return info.DiagnosticInfo?.Code is (int)ErrorCode.ERR_BogusType or (int)ErrorCode.ERR_UnsupportedCompilerFeature;
Symbols\Symbol.cs (2)
1217if (info.DiagnosticInfo?.Code == (int)ErrorCode.ERR_BogusType) 1240var useSiteInfo = new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty));
Symbols\TypeSymbol.cs (2)
522=> code is (int)ErrorCode.ERR_UnsupportedCompilerFeature or (int)ErrorCode.ERR_BogusType; 529return (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);