Esempio n. 1
0
/* Production 93, chapter 3.4, corba 2.3.1 */
  public void raises_expr() {
 /*@bgen(jjtree) raises_expr */
  ASTraises_expr jjtn000 = new ASTraises_expr(this, IDLParserTreeConstants.JJTRAISES_EXPR);
  bool jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(81);
      jj_consume_token(29);
      scoped_name();
      while (true) {
        switch ((jj_ntk==-1)?jj_ntk_calc():jj_ntk) {
        case 20:
          ;
          break;
        default:
          jj_la1[82] = jj_gen;
          goto label_26;
          break;
        }
        jj_consume_token(20);
        scoped_name();
      }
      label_26: ;
      
      jj_consume_token(30);
    } catch (Exception jjte000) {
    if (jjtc000) {
      jjtree.clearNodeScope(jjtn000);
      jjtc000 = false;
    } else {
      jjtree.popNode();
    }
  {if (true) throw ;}
    } finally {
    if (jjtc000) {
      jjtree.closeNodeScope(jjtn000, true);
    }
    }
  }
 /**
  * @see parser.IDLParserVisitor#visit(ASTraises_expr, Object)
  */
 public Object visit(ASTraises_expr node, Object data) {        
     Type[] result = new Type[node.jjtGetNumChildren()];
     for (int i = 0; i < node.jjtGetNumChildren(); i++) {
         Symbol exceptionSymbol = (Symbol)node.jjtGetChild(i).jjtAccept(this, data);
         result[i] = 
             m_typeManager.GetKnownType(exceptionSymbol).GetCompactClsType();
         
     }
     return result;
 }