Ejemplo n.º 1
0
 /*
  * @see ASTVisitor#visit(JavaScriptUnit)
  */
 public boolean visit(JavaScriptUnit node) {
   if (node.getPackage() != null) {
     node.getPackage().accept(this);
   }
   for (Iterator it = node.imports().iterator(); it.hasNext(); ) {
     ImportDeclaration d = (ImportDeclaration) it.next();
     d.accept(this);
   }
   for (Iterator it = node.types().iterator(); it.hasNext(); ) {
     AbstractTypeDeclaration d = (AbstractTypeDeclaration) it.next();
     d.accept(this);
   }
   return false;
 }