53 references to ERR_DeconstructVariableCannotBeByRef
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Deconstruct.cs (2)
830
diagnostics.Add(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, refType.RefKeyword.GetLocation());
888
diagnostics.Add(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, refType.RefKeyword.GetLocation());
Errors\ErrorFacts.cs (1)
1838
case ErrorCode.
ERR_DeconstructVariableCannotBeByRef
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (50)
Semantics\RefFieldTests.cs (45)
11779
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 17),
11785
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 17),
11797
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 17),
11803
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 17),
11809
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(14, 17),
11815
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(15, 17),
11824
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(17, 17),
11830
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(18, 17)
11839
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 17),
11842
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 17),
11854
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 17),
11860
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 17),
11866
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(14, 17),
11872
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(15, 17),
11875
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(17, 17),
11878
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(18, 17)
12023
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 9),
12029
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 9),
12035
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(10, 9),
12041
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(11, 9),
13074
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(7, 17)
14247
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 26),
14253
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 43),
14259
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 26),
14265
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 52),
14277
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 26),
14283
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 46),
14289
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 26),
14295
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 55)
14306
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 26),
14312
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 43),
14315
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 26),
14321
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(9, 52),
14327
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 26),
14333
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(12, 46),
14336
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 26),
14342
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(13, 55)
14476
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(10, 19),
14479
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(10, 29),
14482
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(11, 19),
14485
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(11, 38),
14488
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(14, 19),
14491
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(14, 32),
14494
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(15, 19),
14497
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(15, 41));
Semantics\RefLocalsAndReturnsTests.cs (5)
4775
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(7, 10),
4778
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(7, 21)
4801
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(7, 10),
4810
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(8, 10)
4854
Diagnostic(ErrorCode.
ERR_DeconstructVariableCannotBeByRef
, "ref").WithLocation(4, 13)