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