Package org.eclipse.php.internal.core.ast.nodes

Examples of org.eclipse.php.internal.core.ast.nodes.Reference


    List<ForEachStatement> statements = getAllOfType(program,
        ForEachStatement.class);
    Assert.assertTrue("Unexpected list size.", statements.size() == 1);

    statements.get(0).setKey(ast.newVariable("bar"));
    Reference ref = ast.newReference(ast.newVariable("val"));
    statements.get(0).setValue(ref);
    rewrite();
    checkResult("<?php foreach ($arr as $bar=>&$val) { $value = $value * 2; } ?>");
  }
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.ast.nodes.Reference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.