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)
1899
or ErrorCode.
ERR_DeconstructVariableCannotBeByRef
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (50)
Semantics\RefFieldTests.cs (45)
12302
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 17),
12308
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 17),
12320
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 17),
12326
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 17),
12332
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(14, 17),
12338
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(15, 17),
12347
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(17, 17),
12353
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(18, 17)
12362
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 17),
12365
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 17),
12377
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 17),
12383
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 17),
12389
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(14, 17),
12395
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(15, 17),
12398
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(17, 17),
12401
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(18, 17)
12546
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 9),
12552
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 9),
12558
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(10, 9),
12564
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(11, 9),
13597
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(7, 17)
14770
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 26),
14776
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 43),
14782
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 26),
14788
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 52),
14800
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 26),
14806
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 46),
14812
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 26),
14818
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 55)
14829
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 26),
14835
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 43),
14838
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 26),
14844
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 52),
14850
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 26),
14856
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 46),
14859
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 26),
14865
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 55)
14999
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(10, 19),
15002
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(10, 29),
15005
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(11, 19),
15008
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(11, 38),
15011
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(14, 19),
15014
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(14, 32),
15017
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(15, 19),
15020
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)