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

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


    Program program = createAndParse(str);

    FunctionDeclaration functionDeclaration = (FunctionDeclaration) program
        .statements().get(0);

    IFunctionBinding functionBinding = functionDeclaration
        .resolveFunctionBinding();

    Assert.assertNotNull(functionBinding);
    Assert.assertTrue(functionBinding.getName().equals("foo"));

    ITypeBinding[] returnTypes = functionBinding.getReturnType();
    Assert.assertTrue(returnTypes[0].getName().equals("SoapClient"));
  }
View Full Code Here


    ExpressionStatement statement = (ExpressionStatement) program
        .statements().get(1);
    FunctionInvocation functionInvocation = (FunctionInvocation) statement
        .getExpression();

    IFunctionBinding functionBinding = functionInvocation
        .resolveFunctionBinding();
    Assert.assertNotNull(functionBinding);
    Assert.assertTrue(functionBinding.getName().equals("foo"));
    Assert.assertTrue(functionBinding.isVarargs() == false);
  }
View Full Code Here

TOP

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

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.