15 references to ERR_RefReturningCallInExpressionTree
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
1715case ErrorCode.ERR_RefReturningCallInExpressionTree:
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
338Error(ErrorCode.ERR_RefReturningCallInExpressionTree, node); 499Error(ErrorCode.ERR_RefReturningCallInExpressionTree, node);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\RefLocalsAndReturnsTests.cs (11)
2989Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "RefReturnFunction()").WithLocation(32, 71), 2992Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "RefReturnProperty").WithLocation(33, 71), 2995Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "this[0]").WithLocation(34, 71)); 4001Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "c.P").WithLocation(16, 32), 4004Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "c[0]").WithLocation(17, 18), 4007Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "c.M()").WithLocation(18, 18)); 4653Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "c.P").WithLocation(6, 20) 4688Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "Value").WithLocation(11, 46) 4723Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "1").WithLocation(11, 46), 4726Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "2").WithLocation(11, 49), 4729Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "3").WithLocation(11, 52)
Semantics\SemanticErrorTests.cs (1)
24315Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "GetRefThree()").WithLocation(27, 54),