118 references to ERR_UnscopedRefAttributeUnsupportedMemberTarget
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (1)
2344
or ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
Symbols\Source\SourceEventSymbol.cs (1)
366
diagnostics.Add(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, arguments.AttributeSyntaxOpt!.Location);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
632
diagnostics.Add(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, arguments.AttributeSyntaxOpt.Location);
Symbols\Source\SourcePropertySymbolBase.cs (1)
1612
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)
2378
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "System.Diagnostics.CodeAnalysis.UnscopedRef").WithLocation(5, 10),
2381
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "System.Diagnostics.CodeAnalysis.UnscopedRef").WithLocation(8, 10));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (77)
Semantics\RefFieldTests.cs (77)
22845
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6));
22851
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6)
22880
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6));
22886
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6)
23160
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6),
23163
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 10));
23263
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(19, 10),
23295
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6),
23298
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(7, 6),
23301
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(11, 6),
23304
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(12, 6),
23307
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 6),
23310
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 6));
23340
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 19),
23343
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(7, 27),
23346
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(11, 19),
23349
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(12, 27),
23352
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 19),
23355
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 27));
23380
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 18),
23383
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(7, 10));
23569
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 6),
23588
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6));
23606
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6),
23609
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(5, 6),
23612
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6));
23636
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6),
23639
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(8, 6));
26338
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6),
26341
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(11, 6),
26344
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 6),
26347
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 6));
26373
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(9, 6),
26376
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6));
26399
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(9, 6),
26402
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6));
26445
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6),
26448
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(14, 6),
26451
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(18, 6),
26454
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(22, 6),
26457
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(26, 6),
26460
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(30, 6));
26500
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(11, 31),
26503
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(12, 39),
26506
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 37),
26509
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 45),
26512
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(21, 31),
26515
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(22, 39),
26518
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(26, 37),
26521
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(27, 45));
26551
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(9, 6),
26554
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(13, 36),
26557
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 44));
26584
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6),
26587
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6),
26590
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(14, 6));
26628
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(13, 6),
26631
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(14, 6),
26634
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 32),
26637
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 70),
26640
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 37),
26643
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 59),
26646
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(20, 6),
26649
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(21, 6),
26652
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(22, 38),
26655
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(22, 76),
26658
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(23, 43),
26661
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(23, 65));
26690
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(13, 6),
26693
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(14, 6),
26696
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 39),
26699
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 77),
26702
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 44),
26705
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 66));
26735
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(5, 6),
26738
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 6),
26741
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 6));