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

Examples of org.eclipse.php.internal.core.compiler.ast.nodes.ExpressionStatement


    @Override
    public boolean visit(Statement s) throws Exception {

        if (s instanceof ExpressionStatement) {
            ExpressionStatement stmt = (ExpressionStatement) s;
            if (stmt.getExpr() instanceof PHPCallExpression) {
                PHPCallExpression call = (PHPCallExpression) stmt.getExpr();

                if (("registerNamespaces".equals(call.getName()) || "registerNamespaceFallbacks".equals(call.getName()))
                        && call.getReceiver() instanceof VariableReference) {

                    if (sourceModule.getElementName().equals("bootstrap.php"))
View Full Code Here


    @Override
    public boolean endvisit(Statement s) throws Exception
    {
        if (s instanceof ExpressionStatement) {

            ExpressionStatement stmt = (ExpressionStatement) s;

            if (stmt.getExpr() instanceof PHPCallExpression) {

                return true;
            }
        }
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.compiler.ast.nodes.ExpressionStatement

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.