lib/panino/plugins/parsers/javascript/jsd/ast_esprima.js
function detect_method_or_property(cls, key, value, pair) {
  if (isFn(value)) {
    var m = make_method(key, value);
    if (apply_autodetected(m, pair))
      return cls["members"].push(m); 
  }
  else {
    var p = make_property(key, value);
    if (apply_autodetected(p, pair))
      return cls["members"].push(p);
  }
}
function detect_method_or_property(cls, key, value, pair) {
  if (isFn(value)) {
    var m = make_method(key, value);
    if (apply_autodetected(m, pair))
      return cls["members"].push(m); 
  }
  else {
    var p = make_property(key, value);
    if (apply_autodetected(p, pair))
      return cls["members"].push(p);
  }
}
function detect_method_or_property ( cls , key , value , pair ) { if ( isFn ( value ) ) { var m = make_method ( key , value ) ; if ( apply_autodetected ( m , pair ) ) return cls [ "members" ] . push ( m ) ; } else { var p = make_property ( key , value ) ; if ( apply_autodetected ( p , pair ) ) return cls [ "members" ] . push ( p ) ; } }
Detects item in object literal either as method or property
Detects item in object literal either as method or property