118 references to ERR_UnscopedRefAttributeUnsupportedMemberTarget
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (1)
2345
or ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
Symbols\Source\SourceEventSymbol.cs (1)
370
diagnostics.Add(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, arguments.AttributeSyntaxOpt!.Location);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
633
diagnostics.Add(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, arguments.AttributeSyntaxOpt.Location);
Symbols\Source\SourcePropertySymbolBase.cs (1)
1620
diagnostics.Add(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, arguments.AttributeSyntaxOpt.Location);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (37)
RefStructInterfacesTests.cs (35)
108
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6)
131
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6)
219
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6)
244
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6)
348
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(8, 10)
376
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(8, 10)
466
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6)
596
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(8, 10)
667
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6)
691
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6)
759
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6)
1096
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(100, 6),
1099
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(200, 10)
1107
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(100, 6)
1116
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(200, 10)
1152
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(100, 6),
1155
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(200, 10)
1163
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(100, 6)
1172
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(200, 10)
1264
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(100, 6),
1267
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(200, 10)
1275
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(100, 6)
1284
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(200, 10)
1672
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(100, 6),
1675
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(200, 10)
1683
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(100, 6)
1692
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(200, 10)
1728
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(100, 6),
1731
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(200, 10)
1739
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(100, 6)
1748
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(200, 10)
1840
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(100, 6),
1843
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(200, 10)
1851
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(100, 6)
1860
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(200, 10)
Semantics\ExtensionTests2.cs (2)
3634
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "System.Diagnostics.CodeAnalysis.UnscopedRef").WithLocation(5, 10),
3637
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "System.Diagnostics.CodeAnalysis.UnscopedRef").WithLocation(8, 10));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (77)
Semantics\RefFieldTests.cs (77)
22751
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6));
22757
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6)
22786
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6));
22792
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6)
23066
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6),
23069
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 10));
23169
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(19, 10),
23201
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6),
23204
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(7, 6),
23207
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(11, 6),
23210
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(12, 6),
23213
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 6),
23216
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 6));
23246
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 19),
23249
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(7, 27),
23252
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(11, 19),
23255
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(12, 27),
23258
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 19),
23261
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 27));
23286
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 18),
23289
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(7, 10));
23475
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 6),
23494
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6));
23512
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6),
23515
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(5, 6),
23518
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6));
23542
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6),
23545
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(8, 6));
26244
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6),
26247
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(11, 6),
26250
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 6),
26253
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 6));
26279
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(9, 6),
26282
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6));
26305
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(9, 6),
26308
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6));
26351
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6),
26354
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(14, 6),
26357
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(18, 6),
26360
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(22, 6),
26363
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(26, 6),
26366
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(30, 6));
26406
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(11, 31),
26409
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(12, 39),
26412
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 37),
26415
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 45),
26418
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(21, 31),
26421
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(22, 39),
26424
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(26, 37),
26427
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(27, 45));
26457
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(9, 6),
26460
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(13, 36),
26463
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 44));
26490
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6),
26493
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6),
26496
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(14, 6));
26534
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(13, 6),
26537
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(14, 6),
26540
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 32),
26543
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 70),
26546
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 37),
26549
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 59),
26552
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(20, 6),
26555
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(21, 6),
26558
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(22, 38),
26561
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(22, 76),
26564
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(23, 43),
26567
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(23, 65));
26596
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(13, 6),
26599
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(14, 6),
26602
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 39),
26605
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 77),
26608
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 44),
26611
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 66));
26641
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(5, 6),
26644
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 6),
26647
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 6));