code: 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);
    }
  }
docs: Detects item in object literal either as method or property