118 references to ERR_UnscopedRefAttributeUnsupportedMemberTarget
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (1)
2343
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)
22834
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6));
22840
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6)
22869
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6));
22875
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6)
23149
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6),
23152
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 10));
23252
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(19, 10),
23284
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6),
23287
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(7, 6),
23290
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(11, 6),
23293
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(12, 6),
23296
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 6),
23299
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 6));
23329
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 19),
23332
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(7, 27),
23335
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(11, 19),
23338
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(12, 27),
23341
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 19),
23344
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 27));
23369
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 18),
23372
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(7, 10));
23558
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 6),
23577
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6));
23595
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6),
23598
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(5, 6),
23601
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6));
23625
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(4, 6),
23628
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(8, 6));
26327
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6),
26330
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(11, 6),
26333
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 6),
26336
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 6));
26362
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(9, 6),
26365
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6));
26388
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(9, 6),
26391
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6));
26434
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6),
26437
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(14, 6),
26440
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(18, 6),
26443
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(22, 6),
26446
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(26, 6),
26449
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(30, 6));
26489
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(11, 31),
26492
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(12, 39),
26495
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 37),
26498
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 45),
26501
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(21, 31),
26504
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(22, 39),
26507
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(26, 37),
26510
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(27, 45));
26540
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(9, 6),
26543
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(13, 36),
26546
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 44));
26573
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(6, 6),
26576
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(10, 6),
26579
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(14, 6));
26617
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(13, 6),
26620
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(14, 6),
26623
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 32),
26626
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 70),
26629
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 37),
26632
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 59),
26635
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(20, 6),
26638
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(21, 6),
26641
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(22, 38),
26644
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(22, 76),
26647
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(23, 43),
26650
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(23, 65));
26679
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(13, 6),
26682
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(14, 6),
26685
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 39),
26688
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(15, 77),
26691
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 44),
26694
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 66));
26724
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(5, 6),
26727
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(16, 6),
26730
Diagnostic(ErrorCode.
ERR_UnscopedRefAttributeUnsupportedMemberTarget
, "UnscopedRef").WithLocation(17, 6));