private boolean funDefined() { for (Symbol f : symbols.values()) { if (f.isFunction() && !f.defined) return false; } boolean ret = true; for (SymbolTable baby : this.children) { ret = ret && baby.funDefined(); } return ret; }
/** * Checks whether all declared functions are also defined (together with the declaration, or later * in the code). * * @return Are all functions defined */ public boolean allFunctionsDefined() { SymbolTable root = getRoot(); return root.funDefined(); }