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