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

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


  }

  public void testFunctionDeclarationCreationPHP4() throws Exception {
    String str = "<?php ?> ";
    initialize(str, PHPVersion.PHP4);
    Identifier name = ast.newIdentifier("foo");
    List<FormalParameter> formalParameters = new ArrayList<FormalParameter>();
    formalParameters.add(ast.newFormalParameter(null, ast.newVariable("a"),
        ast.newScalar("5"), false));
    formalParameters.add(ast.newFormalParameter(null, ast.newVariable("b"),
        ast.newScalar("'boobo'"), true));
View Full Code Here


  public void testFunctionDeclarationCreationPHP5() throws Exception {
    String str = "<?php ?> ";
    initialize(str);

    Identifier name = ast.newIdentifier("foo");
    List<FormalParameter> formalParameters = new ArrayList<FormalParameter>();
    formalParameters.add(ast.newFormalParameter(ast.newIdentifier("int"),
        ast.newVariable("a"), ast.newScalar("5"), false));
    formalParameters.add(ast.newFormalParameter(null, ast.newVariable("b"),
        ast.newScalar("'boobo'"), false));
View Full Code Here

TOP

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

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.