75 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)
1014or 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); 751args.Diagnostics.Add(ErrorCode.ERR_BogusType, args.Location, type);
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
151return new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BogusType, this));
Symbols\Metadata\PE\PENamedTypeSymbol.cs (5)
225result._lazyCachedUseSiteInfo.Initialize(result.DeriveCompilerFeatureRequiredDiagnostic() ?? new CSDiagnosticInfo(ErrorCode.ERR_BogusType, result)); 285result._lazyCachedUseSiteInfo.Initialize(result.DeriveCompilerFeatureRequiredDiagnostic() ?? new CSDiagnosticInfo(ErrorCode.ERR_BogusType, result)); 372_lazyCachedUseSiteInfo.Initialize(DeriveCompilerFeatureRequiredDiagnostic() ?? new CSDiagnosticInfo(ErrorCode.ERR_BogusType, this)); 2391diagnostic = new CSDiagnosticInfo(ErrorCode.ERR_BogusType, this); 2989diagnostic = new CSDiagnosticInfo(ErrorCode.ERR_BogusType, this);
Symbols\MissingMetadataTypeSymbol.cs (1)
131return new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty);
Symbols\ParameterSymbol.cs (2)
437protected sealed override bool IsHighestPriorityUseSiteErrorCode(int code) => code is (int)ErrorCode.ERR_UnsupportedCompilerFeature or (int)ErrorCode.ERR_BogusType; 445return info.DiagnosticInfo?.Code is (int)ErrorCode.ERR_BogusType or (int)ErrorCode.ERR_UnsupportedCompilerFeature;
Symbols\Symbol.cs (2)
1212if (info.DiagnosticInfo?.Code == (int)ErrorCode.ERR_BogusType) 1235var 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);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
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.Emit3.UnitTests (3)
Attributes\AttributeTests_WellKnownAttributes.cs (3)
10289Diagnostic(ErrorCode.ERR_BogusType, "Scenario1").WithArguments("Scenario1").WithLocation(12, 29), 10292Diagnostic(ErrorCode.ERR_BogusType, "Scenario1").WithArguments("Scenario1").WithLocation(4, 12), 10295Diagnostic(ErrorCode.ERR_BogusType, "Scenario1").WithArguments("Scenario1").WithLocation(7, 18) };
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\DelegateTypeTests.cs (7)
4056Diagnostic(ErrorCode.ERR_BogusType, "A.F1").WithArguments("").WithLocation(10, 16), 4062Diagnostic(ErrorCode.ERR_BogusType, "A.F2").WithArguments("").WithLocation(11, 16)); 4280Diagnostic(ErrorCode.ERR_BogusType, "F").WithArguments("System.Action<T>").WithLocation(9, 13), 4283Diagnostic(ErrorCode.ERR_BogusType, "() => 1").WithArguments("System.Func<T>").WithLocation(10, 13)); 4445Diagnostic(ErrorCode.ERR_BogusType, "() => 1").WithArguments("System.Linq.Expressions.Expression<T>").WithLocation(5, 48)); 10740Diagnostic(ErrorCode.ERR_BogusType, "F").WithArguments("System.Action<T>").WithLocation(6, 18), 10743Diagnostic(ErrorCode.ERR_BogusType, "() => 1").WithArguments("System.Func<T>").WithLocation(7, 18));
Semantics\LambdaTests.cs (1)
5748Diagnostic(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)
3398Diagnostic(ErrorCode.ERR_BogusType, "T").WithArguments("").WithLocation(3, 14), 3404Diagnostic(ErrorCode.ERR_BogusType, "C2").WithArguments("").WithLocation(5, 7), 3410Diagnostic(ErrorCode.ERR_BogusType, "C").WithArguments("").WithLocation(8, 7), 3466Diagnostic(ErrorCode.ERR_BogusType, "C").WithArguments("").WithLocation(5, 7), 3472Diagnostic(ErrorCode.ERR_BogusType, "I<A>").WithArguments("").WithLocation(7, 10), 3475Diagnostic(ErrorCode.ERR_BogusType, "T").WithArguments("").WithLocation(7, 17), 3481Diagnostic(ErrorCode.ERR_BogusType, "M<A>").WithArguments("").WithLocation(13, 17), 3487Diagnostic(ErrorCode.ERR_BogusType, "A").WithArguments("").WithLocation(15, 13), 3493Diagnostic(ErrorCode.ERR_BogusType, "M<A>").WithArguments("").WithLocation(15, 25)); 3594Diagnostic(ErrorCode.ERR_BogusType, "ITU2<object>").WithArguments("IT<T>.ITU2<U>"), 3597Diagnostic(ErrorCode.ERR_BogusType, "IAI").WithArguments("IT<T>.IT.IAI"), 3600Diagnostic(ErrorCode.ERR_BogusType, "IAI").WithArguments("IT<T>.IAI"), 3603Diagnostic(ErrorCode.ERR_BogusType, "IAI").WithArguments("IT<T>.IAI"), 3606Diagnostic(ErrorCode.ERR_BogusType, "IAI").WithArguments("IT<T>.IAI"), 3609Diagnostic(ErrorCode.ERR_BogusType, "IAI").WithArguments("IT<T>.IAI.IAI"), 3612Diagnostic(ErrorCode.ERR_BogusType, "IF").WithArguments("IT<T>.IF"), 3615Diagnostic(ErrorCode.ERR_BogusType, "IIn").WithArguments("IT<T>.IIn"), 3618Diagnostic(ErrorCode.ERR_BogusType, "ITU2").WithArguments("ITU<T, U>.ITU2"), 3621Diagnostic(ErrorCode.ERR_BogusType, "IT").WithArguments("IAI<T>.IT"), 3624Diagnostic(ErrorCode.ERR_BogusType, "IT").WithArguments("IAI<T>.IT"), 3627Diagnostic(ErrorCode.ERR_BogusType, "CT").WithArguments("CF<T>.CT"), 3630Diagnostic(ErrorCode.ERR_BogusType, "IT").WithArguments("IIn<T>.IT"), 3633Diagnostic(ErrorCode.ERR_BogusType, "IOut").WithArguments("IIn<T>.IOut"));
Symbols\InterfaceImplementationTests.cs (1)
1441Diagnostic(ErrorCode.ERR_BogusType));
Symbols\Metadata\PE\LoadingGenericTypeParameters.cs (8)
202Diagnostic(ErrorCode.ERR_BogusType, "C<int, int>.D").WithArguments("C<T1, T2>.D") 247Diagnostic(ErrorCode.ERR_BogusType, "C0_T_0").WithArguments("I0.IT<T>.I0"), 250Diagnostic(ErrorCode.ERR_BogusType, "CT_0").WithArguments("IT<T>.I0"), 253Diagnostic(ErrorCode.ERR_BogusType, "I0").WithArguments("IT<T>.I0"), 256Diagnostic(ErrorCode.ERR_BogusType, "CT_0_0").WithArguments("IT<T>.I0.I0"), 259Diagnostic(ErrorCode.ERR_BogusType, "I0").WithArguments("IT<T>.I0"), 262Diagnostic(ErrorCode.ERR_BogusType, "CT_T_0").WithArguments("IT<T>.IT.I0"), 265Diagnostic(ErrorCode.ERR_BogusType, "CT_TU_T").WithArguments("IT<T>.ITU<U>.IT"));
Symbols\Source\BaseClassTests.cs (8)
1755Diagnostic(ErrorCode.ERR_BogusType, "x").WithArguments("I<int>").WithLocation(4, 26), 1758Diagnostic(ErrorCode.ERR_BogusType, "x").WithArguments("I<int>").WithLocation(3, 26), 1761Diagnostic(ErrorCode.ERR_BogusType, "D").WithArguments("I<int>").WithLocation(10, 14), 1764Diagnostic(ErrorCode.ERR_BogusType, "I2").WithArguments("I<int>").WithLocation(11, 18), 1767Diagnostic(ErrorCode.ERR_BogusType, "I<int>").WithArguments("I<int>").WithLocation(6, 9) 1809Diagnostic(ErrorCode.ERR_BogusType, "x").WithArguments("I<dynamic>").WithLocation(4, 30), 1812Diagnostic(ErrorCode.ERR_BogusType, "x").WithArguments("I<dynamic>").WithLocation(3, 30), 1815Diagnostic(ErrorCode.ERR_BogusType, "I<dynamic>").WithArguments("I<dynamic>").WithLocation(6, 9)