コード例 #1
0
/* Production 79, chapter 3.4, corba 2.3.1 */
  public void enumerator() {
 /*@bgen(jjtree) enumerator */
  ASTenumerator jjtn000 = new ASTenumerator(this, IDLParserTreeConstants.JJTENUMERATOR);
  bool jjtc000 = true;
  jjtree.openNodeScope(jjtn000);String ident = "";
    try {
      ident = identifier();
                         jjtree.closeNodeScope(jjtn000, true);
                         jjtc000 = false;
      jjtn000.setIdent(ident);
      Scope currentScope = m_symbolTable.getCurrentScope();
      currentScope.addSymbolValue(ident);
    } catch (Exception jjte000) {
    if (jjtc000) {
      jjtree.clearNodeScope(jjtn000);
      jjtc000 = false;
    } else {
      jjtree.popNode();
    }
  {if (true) throw ;}
    } finally {
    if (jjtc000) {
      jjtree.closeNodeScope(jjtn000, true);
    }
    }
  }
コード例 #2
0
 /**
  * @see parser.IDLParserVisitor#visit(ASTenumerator, Object)
  */
 public Object visit(ASTenumerator node, Object data) {
     return null; // nothing to to, used by parent
 }