137 references to WRN_UnreadPrimaryConstructorParameter
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
544
case ErrorCode.
WRN_UnreadPrimaryConstructorParameter
:
2349
or ErrorCode.
WRN_UnreadPrimaryConstructorParameter
FlowAnalysis\DefiniteAssignment.cs (1)
1916
ErrorCode.
WRN_UnreadPrimaryConstructorParameter
,
Generated\ErrorFacts.Generated.cs (1)
315
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 (107)
RefReadonlyParameterTests.cs (2)
661
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p").WithArguments("p").WithLocation(1, 26));
682
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p").WithArguments("p").WithLocation(1, 27));
Semantics\CollectionExpressionTests.cs (5)
16735
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "z").WithArguments("z").WithLocation(1, 28));
16786
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "z").WithArguments("z").WithLocation(2, 27));
16846
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(7, 13));
26726
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "items").WithArguments("items").WithLocation(3, 34),
26786
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "items").WithArguments("items").WithLocation(3, 34),
Semantics\ExtensionTests.cs (7)
20661
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(1, 17));
20971
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(1, 17));
21059
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(1, 17));
21099
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(1, 17));
21139
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(1, 17),
21222
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(1, 17),
21335
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(3, 17));
Semantics\PrimaryConstructorTests.cs (83)
48
return ((int)ErrorCode.
WRN_UnreadPrimaryConstructorParameter
).ToString();
562
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(1, 14),
565
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "y").WithArguments("y").WithLocation(1, 24)
2972
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "P2").WithArguments("P2").WithLocation(17, 19),
2975
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "P3").WithArguments("P3").WithLocation(19, 19),
2978
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "P4").WithArguments("P4").WithLocation(28, 17)
6225
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p").WithArguments("p").WithLocation(1, 14),
8001
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(1000, 1)
8104
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(1000, 1)
8840
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(4, 15)
9506
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(5, 24)
9562
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(5, 15),
9565
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p2").WithArguments("p2").WithLocation(5, 33),
9568
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "global").WithArguments("global").WithLocation(5, 48),
9571
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "C2").WithArguments("C2").WithLocation(5, 64)
10023
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(1000, 15)
10083
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "_").WithArguments("_").WithLocation(2, 15)
10136
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 15)
10330
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 28)
10365
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 28)
10408
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 28)
11015
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11059
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11189
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11231
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11276
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11311
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11338
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17),
11376
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11403
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17),
11441
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11582
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 16)
11657
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 28),
11700
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 28)
11743
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 28)
11928
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 24)
11974
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 18),
12175
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 15),
12178
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "P2").WithArguments("P2").WithLocation(7, 26)
12201
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 15),
12207
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "P2").WithArguments("P2").WithLocation(7, 18),
12295
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
13203
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(2, 22),
13206
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "s").WithArguments("s").WithLocation(2, 27)
13230
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(7, 21),
13233
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "s").WithArguments("s").WithLocation(7, 26)
13335
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(2, 22),
13338
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "s").WithArguments("s").WithLocation(2, 27)
13373
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(7, 21),
13376
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "s").WithArguments("s").WithLocation(7, 26)
14808
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "y").WithArguments("y").WithLocation(2, 35)
15210
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "y").WithArguments("y").WithLocation(2, 33)
19852
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 15)
19882
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 15)
20370
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(9, 14),
20373
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p2").WithArguments("p2").WithLocation(9, 22)
20403
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "X").WithArguments("X").WithLocation(2, 13),
21008
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21040
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21072
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21233
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Type1").WithArguments("Type1").WithLocation(7, 14),
21270
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Type1").WithArguments("Type1").WithLocation(7, 16)
21304
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Type1").WithArguments("Type1").WithLocation(7, 14),
21341
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Type1").WithArguments("Type1").WithLocation(7, 16),
21376
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Type1").WithArguments("Type1").WithLocation(10, 21),
21411
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Type1").WithArguments("Type1").WithLocation(10, 21),
21446
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21479
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(6, 14)
21510
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14)
21539
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21579
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21610
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14)
21647
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21650
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p2").WithArguments("p2").WithLocation(15, 17),
21696
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21699
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p2").WithArguments("p2").WithLocation(18, 17),
21739
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21777
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 22),
21790
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(10, 22)
21828
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 22),
21861
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(11, 14),
22343
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(2, 22),
22349
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)
10819
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p").WithArguments("p").WithLocation(9, 13),
10852
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p").WithArguments("p").WithLocation(9, 13),
10882
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)
3322
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "i").WithArguments("i").WithLocation(1, 23),
5122
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)