53 references to ERR_DeconstructVariableCannotBeByRef
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Deconstruct.cs (2)
833
diagnostics.Add(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, refType.RefKeyword.GetLocation());
893
diagnostics.Add(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, refType.RefKeyword.GetLocation());
Errors\ErrorFacts.cs (1)
1904
or ErrorCode.
ERR_DeconstructVariableCannotBeByRef
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (50)
Semantics\RefFieldTests.cs (45)
12374
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 17),
12380
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 17),
12392
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 17),
12398
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 17),
12404
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(14, 17),
12410
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(15, 17),
12419
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(17, 17),
12425
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(18, 17)
12434
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 17),
12437
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 17),
12449
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 17),
12455
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 17),
12461
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(14, 17),
12467
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(15, 17),
12470
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(17, 17),
12473
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(18, 17)
12618
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 9),
12624
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 9),
12630
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(10, 9),
12636
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(11, 9),
13669
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(7, 17)
14842
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 26),
14848
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 43),
14854
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 26),
14860
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 52),
14872
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 26),
14878
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 46),
14884
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 26),
14890
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 55)
14901
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 26),
14907
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 43),
14910
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 26),
14916
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 52),
14922
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 26),
14928
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 46),
14931
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 26),
14937
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 55)
15071
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(10, 19),
15074
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(10, 29),
15077
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(11, 19),
15080
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(11, 38),
15083
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(14, 19),
15086
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(14, 32),
15089
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(15, 19),
15092
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(15, 41));
Semantics\RefLocalsAndReturnsTests.cs (5)
5164
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(7, 10),
5167
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(7, 21)
5190
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(7, 10),
5199
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 10)
5243
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(4, 13)