Package org.eclipse.dltk.ast.declarations

Examples of org.eclipse.dltk.ast.declarations.MethodDeclaration.traverse()


      ModuleDeclaration rootNode = SourceParserUtil
          .getModuleDeclaration(method.getSourceModule());
      MethodDeclaration methodDeclaration = PHPModelUtils
          .getNodeByMethod(rootNode, method);
      if (methodDeclaration != null) {
        methodDeclaration.traverse(new ASTVisitor() {
          public boolean visit(Statement s) throws Exception {
            if (s instanceof GlobalStatement) {
              GlobalStatement globalStatement = (GlobalStatement) s;
              for (Expression e : globalStatement.getVariables()) {
                if (e instanceof VariableReference) {
View Full Code Here


          return super.visitGeneral(node);
        }
      };

      try {
        functionDeclaration.traverse(visitor);
      } catch (Exception e) {
        if (DLTKCore.DEBUG) {
          e.printStackTrace();
        }
      }
View Full Code Here

            return super.visitGeneral(node);
          }
        };

        try {
          decl.traverse(visitor);
        } catch (Exception e) {
          if (DLTKCore.DEBUG) {
            e.printStackTrace();
          }
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.