function argInAppCheck(statNode, app, caller) {
    if (caller != null) return;
    let leaves = [];
    self.treeOps.getAllLeafNodes(statNode[1], leaves);
    if (leaves.some(l => l.type === 'arg')) {
      self.display.undefinedArgError(app);
    }
  }
/***
   * If the is any argument in function application outside a function definition.
   * @param statNode - function application named children nodes array
   * @param app - function application statement
   * @param caller - the statement in which the function is called.
   */
If the is any argument in function application outside a function definition.
@param statNode - function application named children nodes array
@param app - function application statement
@param caller - the statement in which the function is called.
If the is any argument in function application outside a function definition . @param statNode - function application named children nodes array @param app - function application statement @param caller - the statement in which the function is called .
function argInAppCheck(statNode, app, caller) {
    if (caller != null) return;
    let leaves = [];
    self.treeOps.getAllLeafNodes(statNode[1], leaves);
    if (leaves.some(l => l.type === 'arg')) {
      self.display.undefinedArgError(app);
    }
  }
function argInAppCheck ( statNode , app , caller ) { if ( caller != null ) return ; let leaves = [ ] ; self . treeOps . getAllLeafNodes ( statNode [ 1 ] , leaves ) ; if ( leaves . some ( l => l . type === 'arg' ) ) { self . display . undefinedArgError ( app ) ; } }
If the is any argument in function application outside a function definition.
If the is any argument in function application outside a function definition .