Exemplo n.º 1
0
            private void AssignToImplicitReturn(Expression expression)
            {
                Debug.Assert(expression == _currExpressionStatement.Expression, "Invalid situation!");
                expression.RemoveUser(_currExpressionStatement); //to avoid user complications!
                var assign = new WriteIdentifierExpression(_implicitReturn, expression);

                //_currExpressionStatement.Expression = assign;
                _currExpressionStatement.Replace(_currExpressionStatement.Expression, assign);
                TerminateCurrBlock();
            }