135 references to WRN_UnreadPrimaryConstructorParameter
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
544
case ErrorCode.
WRN_UnreadPrimaryConstructorParameter
:
2348
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 (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)
14907
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "z").WithArguments("z").WithLocation(1, 28));
14958
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "z").WithArguments("z").WithLocation(2, 27));
15018
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(7, 13));
Semantics\ExtensionTests.cs (7)
20596
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(1, 17));
20906
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(1, 17));
20994
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(1, 17));
21034
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(1, 17));
21074
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(1, 17),
21157
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(1, 17),
21270
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)
6095
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p").WithArguments("p").WithLocation(1, 14),
7871
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(1000, 1)
7974
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(1000, 1)
8710
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(4, 15)
9376
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(5, 24)
9432
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(5, 15),
9435
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p2").WithArguments("p2").WithLocation(5, 33),
9438
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "global").WithArguments("global").WithLocation(5, 48),
9441
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "C2").WithArguments("C2").WithLocation(5, 64)
9893
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(1000, 15)
9953
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "_").WithArguments("_").WithLocation(2, 15)
10006
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 15)
10200
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 28)
10235
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 28)
10278
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 28)
10885
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
10929
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11059
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11101
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11146
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11181
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11208
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17),
11246
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11273
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17),
11311
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
11452
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 16)
11527
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 28),
11570
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 28)
11613
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 28)
11798
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(6, 24)
11844
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 18),
12045
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 15),
12048
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "P2").WithArguments("P2").WithLocation(7, 26)
12071
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 15),
12077
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "P2").WithArguments("P2").WithLocation(7, 18),
12165
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Color").WithArguments("Color").WithLocation(2, 17)
13073
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(2, 22),
13076
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "s").WithArguments("s").WithLocation(2, 27)
13100
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(7, 21),
13103
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "s").WithArguments("s").WithLocation(7, 26)
13205
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(2, 22),
13208
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "s").WithArguments("s").WithLocation(2, 27)
13243
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(7, 21),
13246
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "s").WithArguments("s").WithLocation(7, 26)
14678
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "y").WithArguments("y").WithLocation(2, 35)
15080
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "y").WithArguments("y").WithLocation(2, 33)
19722
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 15)
19752
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 15)
20240
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(9, 14),
20243
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p2").WithArguments("p2").WithLocation(9, 22)
20273
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "X").WithArguments("X").WithLocation(2, 13),
20878
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
20910
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
20942
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21103
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Type1").WithArguments("Type1").WithLocation(7, 14),
21140
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Type1").WithArguments("Type1").WithLocation(7, 16)
21174
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Type1").WithArguments("Type1").WithLocation(7, 14),
21211
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Type1").WithArguments("Type1").WithLocation(7, 16),
21246
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Type1").WithArguments("Type1").WithLocation(10, 21),
21281
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "Type1").WithArguments("Type1").WithLocation(10, 21),
21316
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21349
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(6, 14)
21380
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14)
21409
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21449
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21480
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14)
21517
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21520
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p2").WithArguments("p2").WithLocation(15, 17),
21566
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21569
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p2").WithArguments("p2").WithLocation(18, 17),
21609
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(7, 14),
21647
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 22),
21660
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(10, 22)
21698
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(2, 22),
21731
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "p1").WithArguments("p1").WithLocation(11, 14),
22213
Diagnostic(ErrorCode.
WRN_UnreadPrimaryConstructorParameter
, "x").WithArguments("x").WithLocation(2, 22),
22219
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)
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)