58 references to ERR_InExtensionParameterMustBeValueType
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2512
or ErrorCode.
ERR_InExtensionParameterMustBeValueType
Symbols\Extensions\SynthesizedExtensionMarker.cs (1)
106
diagnostics.Add(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, parameterTypeSyntax);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (56)
Semantics\ExtensionOperatorsTests.cs (16)
4514
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "C2").WithLocation(900, 18),
4520
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "C2").WithLocation(1100, 28),
4535
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(1600, 21),
4538
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(1700, 21),
4541
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(1800, 21),
4544
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(1900, 31),
4547
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(2000, 31),
4550
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(2100, 31),
20107
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "C2").WithLocation(900, 18),
20113
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "C2").WithLocation(1100, 28),
20128
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(1600, 21),
20131
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(1700, 21),
20134
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(1800, 21),
20137
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(1900, 31),
20140
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(2000, 31),
20143
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(2100, 31),
Semantics\ExtensionTests.cs (6)
3846
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "object").WithLocation(4, 18),
3849
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(5, 21),
3852
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(6, 21));
3895
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "object").WithLocation(4, 28),
3898
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(5, 31),
3901
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(6, 31));
Semantics\ExtensionTests2.cs (34)
7272
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(21, 25),
7275
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(31, 35)
7417
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(21, 25),
7420
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(31, 35)
8714
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(21, 25),
8717
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(31, 35)
9805
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(21, 25),
9808
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(31, 35)
10544
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(21, 25),
10547
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(31, 35)
11860
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(26, 25),
11863
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(36, 35)
12774
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(21, 25),
12777
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(31, 35)
13519
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(21, 25),
13522
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(31, 35)
13673
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(21, 25),
13676
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(31, 35)
14796
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(21, 25),
14799
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(31, 35)
14985
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(21, 25),
14988
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(31, 35)
16167
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(21, 25),
16170
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(31, 35)
16345
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(21, 25),
16348
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(31, 35)
17518
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(21, 25),
17521
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(31, 35)
19157
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(21, 25),
19160
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(31, 35)
19304
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(21, 25),
19307
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(31, 35)
20220
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(21, 25),
20223
Diagnostic(ErrorCode.
ERR_InExtensionParameterMustBeValueType
, "T").WithLocation(31, 35)