53 references to ERR_DeconstructVariableCannotBeByRef
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Deconstruct.cs (2)
831
diagnostics.Add(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, refType.RefKeyword.GetLocation());
891
diagnostics.Add(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, refType.RefKeyword.GetLocation());
Errors\ErrorFacts.cs (1)
1897
or ErrorCode.
ERR_DeconstructVariableCannotBeByRef
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (50)
Semantics\RefFieldTests.cs (45)
12339
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 17),
12345
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 17),
12357
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 17),
12363
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 17),
12369
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(14, 17),
12375
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(15, 17),
12384
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(17, 17),
12390
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(18, 17)
12399
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 17),
12402
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 17),
12414
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 17),
12420
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 17),
12426
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(14, 17),
12432
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(15, 17),
12435
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(17, 17),
12438
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(18, 17)
12583
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 9),
12589
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 9),
12595
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(10, 9),
12601
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(11, 9),
13634
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(7, 17)
14807
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 26),
14813
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 43),
14819
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 26),
14825
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 52),
14837
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 26),
14843
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 46),
14849
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 26),
14855
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 55)
14866
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 26),
14872
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 43),
14875
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 26),
14881
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 52),
14887
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 26),
14893
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 46),
14896
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 26),
14902
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 55)
15036
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(10, 19),
15039
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(10, 29),
15042
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(11, 19),
15045
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(11, 38),
15048
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(14, 19),
15051
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(14, 32),
15054
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(15, 19),
15057
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(15, 41));
Semantics\RefLocalsAndReturnsTests.cs (5)
5170
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(7, 10),
5173
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(7, 21)
5196
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(7, 10),
5205
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 10)
5249
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(4, 13)