private static bool DefinedOnInterface(MethodInfo meth){ JSFieldMethod jsmeth = meth as JSFieldMethod; if (jsmeth != null) return ((ClassScope)jsmeth.func.enclosing_scope).owner.isInterface; return meth.DeclaringType.IsInterface; }