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