73 references to ERR_BogusType
Microsoft.CodeAnalysis.CSharp (18)
Emitter\Model\PEModuleBuilder.cs (1)
972diagnostics.Add(new CSDiagnostic(diagInfo ?? new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty), syntaxNodeOpt == null ? NoLocation.Singleton : syntaxNodeOpt.Location));
Errors\ErrorFacts.cs (1)
952case ErrorCode.ERR_BogusType:
Symbols\ConstraintsHelper.cs (2)
660args.Diagnostics.Add(ErrorCode.ERR_BogusType, args.Location, type); 698args.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)
205result._lazyCachedUseSiteInfo.Initialize(result.DeriveCompilerFeatureRequiredDiagnostic() ?? new CSDiagnosticInfo(ErrorCode.ERR_BogusType, result)); 265result._lazyCachedUseSiteInfo.Initialize(result.DeriveCompilerFeatureRequiredDiagnostic() ?? new CSDiagnosticInfo(ErrorCode.ERR_BogusType, result)); 352_lazyCachedUseSiteInfo.Initialize(DeriveCompilerFeatureRequiredDiagnostic() ?? new CSDiagnosticInfo(ErrorCode.ERR_BogusType, this)); 2089diagnostic = new CSDiagnosticInfo(ErrorCode.ERR_BogusType, this); 2622diagnostic = new CSDiagnosticInfo(ErrorCode.ERR_BogusType, this);
Symbols\MissingMetadataTypeSymbol.cs (1)
130return new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty);
Symbols\ParameterSymbol.cs (2)
423protected sealed override bool IsHighestPriorityUseSiteErrorCode(int code) => code is (int)ErrorCode.ERR_UnsupportedCompilerFeature or (int)ErrorCode.ERR_BogusType; 431return info.DiagnosticInfo?.Code is (int)ErrorCode.ERR_BogusType or (int)ErrorCode.ERR_UnsupportedCompilerFeature;
Symbols\Symbol.cs (2)
1062if (info.DiagnosticInfo?.Code == (int)ErrorCode.ERR_BogusType) 1085var useSiteInfo = new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty));
Symbols\TypeSymbol.cs (2)
518=> code is (int)ErrorCode.ERR_UnsupportedCompilerFeature or (int)ErrorCode.ERR_BogusType; 525return (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);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (6)
Attributes\AttributeTests_WellKnownAttributes.cs (3)
10191Diagnostic(ErrorCode.ERR_BogusType, "Scenario1").WithArguments("Scenario1").WithLocation(12, 29), 10194Diagnostic(ErrorCode.ERR_BogusType, "Scenario1").WithArguments("Scenario1").WithLocation(4, 12), 10197Diagnostic(ErrorCode.ERR_BogusType, "Scenario1").WithArguments("Scenario1").WithLocation(7, 18) };
Emit\UnmanagedTypeModifierTests.cs (3)
82Diagnostic(ErrorCode.ERR_BogusType, "M2<int>").WithArguments("").WithLocation(9, 13) 151Diagnostic(ErrorCode.ERR_BogusType, "M2<int>").WithArguments("").WithLocation(9, 13) 220Diagnostic(ErrorCode.ERR_BogusType, "M2<int>").WithArguments("").WithLocation(9, 13)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\DelegateTypeTests.cs (7)
2172Diagnostic(ErrorCode.ERR_BogusType, "A.F1").WithArguments("").WithLocation(10, 16), 2178Diagnostic(ErrorCode.ERR_BogusType, "A.F2").WithArguments("").WithLocation(11, 16)); 2396Diagnostic(ErrorCode.ERR_BogusType, "F").WithArguments("System.Action<T>").WithLocation(9, 13), 2399Diagnostic(ErrorCode.ERR_BogusType, "() => 1").WithArguments("System.Func<T>").WithLocation(10, 13)); 2561Diagnostic(ErrorCode.ERR_BogusType, "() => 1").WithArguments("System.Linq.Expressions.Expression<T>").WithLocation(5, 48)); 7927Diagnostic(ErrorCode.ERR_BogusType, "F").WithArguments("System.Action<T>").WithLocation(6, 18), 7930Diagnostic(ErrorCode.ERR_BogusType, "() => 1").WithArguments("System.Func<T>").WithLocation(7, 18));
Semantics\LambdaTests.cs (1)
5712Diagnostic(ErrorCode.ERR_BogusType, "A").WithArguments("A").WithLocation(7, 11));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (41)
Symbols\ErrorTypeSymbolTests.cs (1)
119Assert.Equal(ErrorCode.ERR_BogusType, (ErrorCode)info.Code);
Symbols\GenericConstraintTests.cs (23)
3396Diagnostic(ErrorCode.ERR_BogusType, "T").WithArguments("").WithLocation(3, 14), 3402Diagnostic(ErrorCode.ERR_BogusType, "C2").WithArguments("").WithLocation(5, 7), 3408Diagnostic(ErrorCode.ERR_BogusType, "C").WithArguments("").WithLocation(8, 7), 3464Diagnostic(ErrorCode.ERR_BogusType, "C").WithArguments("").WithLocation(5, 7), 3470Diagnostic(ErrorCode.ERR_BogusType, "I<A>").WithArguments("").WithLocation(7, 10), 3473Diagnostic(ErrorCode.ERR_BogusType, "T").WithArguments("").WithLocation(7, 17), 3479Diagnostic(ErrorCode.ERR_BogusType, "M<A>").WithArguments("").WithLocation(13, 17), 3485Diagnostic(ErrorCode.ERR_BogusType, "A").WithArguments("").WithLocation(15, 13), 3491Diagnostic(ErrorCode.ERR_BogusType, "M<A>").WithArguments("").WithLocation(15, 25)); 3592Diagnostic(ErrorCode.ERR_BogusType, "ITU2<object>").WithArguments("IT<T>.ITU2<U>"), 3595Diagnostic(ErrorCode.ERR_BogusType, "IAI").WithArguments("IT<T>.IT.IAI"), 3598Diagnostic(ErrorCode.ERR_BogusType, "IAI").WithArguments("IT<T>.IAI"), 3601Diagnostic(ErrorCode.ERR_BogusType, "IAI").WithArguments("IT<T>.IAI"), 3604Diagnostic(ErrorCode.ERR_BogusType, "IAI").WithArguments("IT<T>.IAI"), 3607Diagnostic(ErrorCode.ERR_BogusType, "IAI").WithArguments("IT<T>.IAI.IAI"), 3610Diagnostic(ErrorCode.ERR_BogusType, "IF").WithArguments("IT<T>.IF"), 3613Diagnostic(ErrorCode.ERR_BogusType, "IIn").WithArguments("IT<T>.IIn"), 3616Diagnostic(ErrorCode.ERR_BogusType, "ITU2").WithArguments("ITU<T, U>.ITU2"), 3619Diagnostic(ErrorCode.ERR_BogusType, "IT").WithArguments("IAI<T>.IT"), 3622Diagnostic(ErrorCode.ERR_BogusType, "IT").WithArguments("IAI<T>.IT"), 3625Diagnostic(ErrorCode.ERR_BogusType, "CT").WithArguments("CF<T>.CT"), 3628Diagnostic(ErrorCode.ERR_BogusType, "IT").WithArguments("IIn<T>.IT"), 3631Diagnostic(ErrorCode.ERR_BogusType, "IOut").WithArguments("IIn<T>.IOut"));
Symbols\InterfaceImplementationTests.cs (1)
1441Diagnostic(ErrorCode.ERR_BogusType));
Symbols\Metadata\PE\LoadingGenericTypeParameters.cs (8)
201Diagnostic(ErrorCode.ERR_BogusType, "C<int, int>.D").WithArguments("C<T1, T2>.D") 246Diagnostic(ErrorCode.ERR_BogusType, "C0_T_0").WithArguments("I0.IT<T>.I0"), 249Diagnostic(ErrorCode.ERR_BogusType, "CT_0").WithArguments("IT<T>.I0"), 252Diagnostic(ErrorCode.ERR_BogusType, "I0").WithArguments("IT<T>.I0"), 255Diagnostic(ErrorCode.ERR_BogusType, "CT_0_0").WithArguments("IT<T>.I0.I0"), 258Diagnostic(ErrorCode.ERR_BogusType, "I0").WithArguments("IT<T>.I0"), 261Diagnostic(ErrorCode.ERR_BogusType, "CT_T_0").WithArguments("IT<T>.IT.I0"), 264Diagnostic(ErrorCode.ERR_BogusType, "CT_TU_T").WithArguments("IT<T>.ITU<U>.IT"));
Symbols\Source\BaseClassTests.cs (8)
1754Diagnostic(ErrorCode.ERR_BogusType, "x").WithArguments("I<int>").WithLocation(4, 26), 1757Diagnostic(ErrorCode.ERR_BogusType, "x").WithArguments("I<int>").WithLocation(3, 26), 1760Diagnostic(ErrorCode.ERR_BogusType, "D").WithArguments("I<int>").WithLocation(10, 14), 1763Diagnostic(ErrorCode.ERR_BogusType, "I2").WithArguments("I<int>").WithLocation(11, 18), 1766Diagnostic(ErrorCode.ERR_BogusType, "I<int>").WithArguments("I<int>").WithLocation(6, 9) 1808Diagnostic(ErrorCode.ERR_BogusType, "x").WithArguments("I<dynamic>").WithLocation(4, 30), 1811Diagnostic(ErrorCode.ERR_BogusType, "x").WithArguments("I<dynamic>").WithLocation(3, 30), 1814Diagnostic(ErrorCode.ERR_BogusType, "I<dynamic>").WithArguments("I<dynamic>").WithLocation(6, 9)