15 references to ERR_RefReturningCallInExpressionTree
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
1777
or ErrorCode.
ERR_RefReturningCallInExpressionTree
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
358
Error(ErrorCode.
ERR_RefReturningCallInExpressionTree
, node);
579
Error(ErrorCode.
ERR_RefReturningCallInExpressionTree
, node);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\RefLocalsAndReturnsTests.cs (11)
3090
Diagnostic(ErrorCode.
ERR_RefReturningCallInExpressionTree
, "RefReturnFunction()").WithLocation(32, 71),
3093
Diagnostic(ErrorCode.
ERR_RefReturningCallInExpressionTree
, "RefReturnProperty").WithLocation(33, 71),
3096
Diagnostic(ErrorCode.
ERR_RefReturningCallInExpressionTree
, "this[0]").WithLocation(34, 71));
4396
Diagnostic(ErrorCode.
ERR_RefReturningCallInExpressionTree
, "c.P").WithLocation(16, 32),
4399
Diagnostic(ErrorCode.
ERR_RefReturningCallInExpressionTree
, "c[0]").WithLocation(17, 18),
4402
Diagnostic(ErrorCode.
ERR_RefReturningCallInExpressionTree
, "c.M()").WithLocation(18, 18));
5048
Diagnostic(ErrorCode.
ERR_RefReturningCallInExpressionTree
, "c.P").WithLocation(6, 20)
5083
Diagnostic(ErrorCode.
ERR_RefReturningCallInExpressionTree
, "Value").WithLocation(11, 46)
5118
Diagnostic(ErrorCode.
ERR_RefReturningCallInExpressionTree
, "1").WithLocation(11, 46),
5121
Diagnostic(ErrorCode.
ERR_RefReturningCallInExpressionTree
, "2").WithLocation(11, 49),
5124
Diagnostic(ErrorCode.
ERR_RefReturningCallInExpressionTree
, "3").WithLocation(11, 52)
Semantics\SemanticErrorTests.cs (1)
24571
Diagnostic(ErrorCode.
ERR_RefReturningCallInExpressionTree
, "GetRefThree()").WithLocation(27, 54),