public ScBlock_assignment_statement(ASTNode node) {
   super(node, true);
   assert (node.getId() == ASTBLOCK_ASSIGNMENT_STATEMENT);
   for (int i = 0; i < curNode.getChildrenNum(); i++) {
     ASTNode c = (ASTNode) curNode.getChild(i);
     switch (c.getId()) {
       case ASTBLOCKING_ASSIGNMENT:
         assign = new ScBlocking_assignment(c);
         break;
       default:
         break;
     }
   }
 }
Example #2
0
 public ScParameter_override(ASTNode node) {
   super(node);
   assert (node.getId() == ASTPARAMETER_OVERRIDE);
   for (int i = 0; i < curNode.getChildrenNum(); i++) {
     ASTNode c = (ASTNode) curNode.getChild(i);
     switch (c.getId()) {
       case ASTLIST_OF_PARAM_ASSIGNMENTS:
         param = new ScList_of_param_assignments(c);
         break;
       default:
         break;
     }
   }
 }
Example #3
0
 /** search descendant recursive to find the first specified ASTNode */
 public IASTNode getDescendant(int id) {
   IASTNode ret = null;
   for (int i = 0; i < children.size(); i++) {
     ASTNode child = (ASTNode) children.get(i);
     if (child.getId() == id) {
       ret = child;
       break;
     }
     ret = child.getDescendant(id);
     if (ret != null) {
       break;
     }
   }
   return ret;
 }
Example #4
0
 /** search descendant recursive to find the first specified ASTNode */
 public IASTNode getDescendant(int id, String name) {
   IASTNode ret = null;
   for (int i = 0; i < children.size(); i++) {
     ASTNode child = (ASTNode) children.get(i);
     if (child.getId() == id && name.equalsIgnoreCase(child.getName())) {
       ret = child;
       break;
     }
     ret = child.getDescendant(id, name);
     if (ret != null) {
       break;
     }
   }
   return ret;
 }
 public ScSpecify_output_terminal_descriptor(ASTNode node) {
   super(node);
   assert (node.getId() == ASTSPECIFY_OUTPUT_TERMINAL_DESCRIPTOR);
 }