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)
2704
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "System.Diagnostics.CodeAnalysis.UnscopedRef").WithLocation(5, 10),
2707
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "System.Diagnostics.CodeAnalysis.UnscopedRef").WithLocation(8, 10));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (77)
Semantics\RefFieldTests.cs (77)
22839
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6));
22845
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6)
22874
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6));
22880
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6)
23154
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6),
23157
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 10));
23257
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(19, 10),
23289
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6),
23292
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(7, 6),
23295
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(11, 6),
23298
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(12, 6),
23301
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 6),
23304
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 6));
23334
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 19),
23337
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(7, 27),
23340
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(11, 19),
23343
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(12, 27),
23346
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 19),
23349
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 27));
23374
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 18),
23377
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(7, 10));
23563
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 6),
23582
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6));
23600
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6),
23603
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(5, 6),
23606
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6));
23630
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6),
23633
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(8, 6));
26332
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6),
26335
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(11, 6),
26338
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 6),
26341
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 6));
26367
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(9, 6),
26370
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6));
26393
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(9, 6),
26396
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6));
26439
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6),
26442
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(14, 6),
26445
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(18, 6),
26448
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(22, 6),
26451
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(26, 6),
26454
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(30, 6));
26494
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(11, 31),
26497
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(12, 39),
26500
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 37),
26503
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 45),
26506
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(21, 31),
26509
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(22, 39),
26512
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(26, 37),
26515
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(27, 45));
26545
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(9, 6),
26548
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(13, 36),
26551
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 44));
26578
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6),
26581
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6),
26584
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(14, 6));
26622
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(13, 6),
26625
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(14, 6),
26628
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 32),
26631
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 70),
26634
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 37),
26637
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 59),
26640
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(20, 6),
26643
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(21, 6),
26646
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(22, 38),
26649
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(22, 76),
26652
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(23, 43),
26655
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(23, 65));
26684
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(13, 6),
26687
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(14, 6),
26690
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 39),
26693
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 77),
26696
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 44),
26699
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 66));
26729
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(5, 6),
26732
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 6),
26735
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 6));