Exemple #1
0
        /**
         * Creates a return for the expr.
         */
        public QuercusProgram createExprReturn()
        {
            // quercus/1515 - used to convert an call string to return a value

            if (_statement instanceof ExprStatement)
            {
                ExprStatement exprStmt = (ExprStatement)_statement;

                _statement = new ReturnStatement(exprStmt.getExpr());
            }
Exemple #2
0
 public ExprBlock(ExprStatement optionalStatements)
     : base(ExpressionKind.Block)
 {
     OptionalStatements = optionalStatements;
 }