135 references to WRN_UnreadPrimaryConstructorParameter
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
545
case ErrorCode.
WRN_UnreadPrimaryConstructorParameter
:
2350
or ErrorCode.
WRN_UnreadPrimaryConstructorParameter
FlowAnalysis\DefiniteAssignment.cs (1)
1965
ErrorCode.
WRN_UnreadPrimaryConstructorParameter
,
Generated\ErrorFacts.Generated.cs (1)
316
case ErrorCode.
WRN_UnreadPrimaryConstructorParameter
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenTupleTest.cs (2)
13329
#pragma warning disable CS" + ((int)ErrorCode.
WRN_UnreadPrimaryConstructorParameter
).ToString() + @" // Parameter is unread.
13360
#pragma warning disable CS" + ((int)ErrorCode.
WRN_UnreadPrimaryConstructorParameter
).ToString() + @" // Parameter is unread.
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (105)
RefReadonlyParameterTests.cs (2)
637
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p").WithArguments("p").WithLocation(1, 26));
658
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p").WithArguments("p").WithLocation(1, 27));
Semantics\CollectionExpressionTests.cs (3)
14904
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "z").WithArguments("z").WithLocation(1, 28));
14955
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "z").WithArguments("z").WithLocation(2, 27));
15015
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(7, 13));
Semantics\ExtensionTests.cs (7)
19429
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(1, 17));
19739
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(1, 17));
19827
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(1, 17));
19867
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(1, 17));
19907
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(1, 17),
19990
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(1, 17),
20103
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(3, 17));
Semantics\PrimaryConstructorTests.cs (83)
48
return ((int)ErrorCode.
WRN_UnreadPrimaryConstructorParameter
).ToString();
432
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(1, 14),
435
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "y").WithArguments("y").WithLocation(1, 24)
2842
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "P2").WithArguments("P2").WithLocation(17, 19),
2845
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "P3").WithArguments("P3").WithLocation(19, 19),
2848
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "P4").WithArguments("P4").WithLocation(28, 17)
6085
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p").WithArguments("p").WithLocation(1, 14),
7861
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(1000, 1)
7964
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(1000, 1)
8700
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(4, 15)
9366
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(5, 24)
9422
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(5, 15),
9425
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p2").WithArguments("p2").WithLocation(5, 33),
9428
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "global").WithArguments("global").WithLocation(5, 48),
9431
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "C2").WithArguments("C2").WithLocation(5, 64)
9883
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(1000, 15)
9943
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "_").WithArguments("_").WithLocation(2, 15)
9996
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 15)
10190
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 28)
10225
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 28)
10268
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 28)
10875
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
10919
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11049
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11091
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11136
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11171
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11198
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17),
11236
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11263
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17),
11301
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11442
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 16)
11517
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 28),
11560
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 28)
11603
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 28)
11788
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 24)
11834
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 18),
12035
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 15),
12038
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "P2").WithArguments("P2").WithLocation(7, 26)
12061
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 15),
12067
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "P2").WithArguments("P2").WithLocation(7, 18),
12155
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
13063
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(2, 22),
13066
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "s").WithArguments("s").WithLocation(2, 27)
13090
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(7, 21),
13093
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "s").WithArguments("s").WithLocation(7, 26)
13195
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(2, 22),
13198
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "s").WithArguments("s").WithLocation(2, 27)
13233
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(7, 21),
13236
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "s").WithArguments("s").WithLocation(7, 26)
14668
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "y").WithArguments("y").WithLocation(2, 35)
15070
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "y").WithArguments("y").WithLocation(2, 33)
19712
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 15)
19742
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 15)
20230
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(9, 14),
20233
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p2").WithArguments("p2").WithLocation(9, 22)
20263
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "X").WithArguments("X").WithLocation(2, 13),
20868
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
20900
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
20932
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21093
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Type1").WithArguments("Type1").WithLocation(7, 14),
21130
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Type1").WithArguments("Type1").WithLocation(7, 16)
21164
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Type1").WithArguments("Type1").WithLocation(7, 14),
21201
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Type1").WithArguments("Type1").WithLocation(7, 16),
21236
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Type1").WithArguments("Type1").WithLocation(10, 21),
21271
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Type1").WithArguments("Type1").WithLocation(10, 21),
21306
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21339
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(6, 14)
21370
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14)
21399
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21439
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21470
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14)
21507
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21510
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p2").WithArguments("p2").WithLocation(15, 17),
21556
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21559
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p2").WithArguments("p2").WithLocation(18, 17),
21599
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21637
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 22),
21650
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(10, 22)
21688
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 22),
21721
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(11, 14),
22203
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(2, 22),
22209
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(6, 21)
Semantics\RecordTests.cs (10)
58
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(2, 17),
61
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "y").WithArguments("y").WithLocation(2, 24)
98
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(2, 17),
101
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "y").WithArguments("y").WithLocation(2, 24)
151
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(4, 21),
154
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "y").WithArguments("y").WithLocation(4, 28)
181
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(4, 21),
184
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "y").WithArguments("y").WithLocation(4, 28)
222
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(2, 24),
225
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "y").WithArguments("y").WithLocation(2, 31)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\LocalFunctionTests.cs (3)
10519
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p").WithArguments("p").WithLocation(9, 13),
10552
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p").WithArguments("p").WithLocation(9, 13),
10582
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p").WithArguments("p").WithLocation(9, 16),
Semantics\RecordStructTests.cs (8)
258
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(2, 18),
261
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "y").WithArguments("y").WithLocation(2, 25)
283
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(2, 18),
286
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "y").WithArguments("y").WithLocation(2, 25)
330
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(4, 22),
333
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "y").WithArguments("y").WithLocation(4, 29)
358
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(4, 22),
361
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "y").WithArguments("y").WithLocation(4, 29)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Symbols\PartialPropertiesTests.cs (2)
3295
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "i").WithArguments("i").WithLocation(1, 23),
5095
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "s").WithArguments("s").WithLocation(4, 26),
Symbols\Source\RecordTests.cs (4)
1233
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "X").WithArguments("X").WithLocation(3, 19),
1236
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Y").WithArguments("Y").WithLocation(3, 26),
1239
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "X").WithArguments("X").WithLocation(5, 20),
1242
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Y").WithArguments("Y").WithLocation(5, 27),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Diagnostics\DiagnosticTest.cs (1)
306
case ErrorCode.
WRN_UnreadPrimaryConstructorParameter
:
Parsing\RecordParsing.cs (4)
2762
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "X").WithArguments("X").WithLocation(1, 21),
2765
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Y").WithArguments("Y").WithLocation(1, 28)
2948
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "X").WithArguments("X").WithLocation(1, 20),
2951
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Y").WithArguments("Y").WithLocation(1, 27)
Parsing\TopLevelStatementsParsingTests.cs (2)
3211
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(2, 24),
3214
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "y").WithArguments("y").WithLocation(2, 31)