void addLocalUdf(ParserRuleContext ctx) {
    if (exec == this) {                              
      localUdf.append(Exec.getFormattedText(ctx));
      localUdf.append("\n");
    }
  }
Add functions and procedures defined in the current script
hplsql/src/main/java/org/apache/hive/hplsql/Exec.java