
var factory = {
  constructor: function (def) {
    return {
      name: def.name,
      type: 'cons',
      arguments: def.arguments,
      members: factory.members(def.members)
    }
  },
  object: function (def) {
    return {
      name: def.name,
      primary: def.primary,
      type: 'prop',
      members: factory.members(def.members)
    }
  },
  members: function (members) {
    "use strict";
    return members.map(function (member) {
      var idltype = null;
      var m = {
        name: member.name,
        type: (member.type === 'operation') ? 'method' : 'prop',
        static: member.static,
        interface: member.idl
      };
      if (m.type === 'method') {
        m.arguments = member.arguments;
      }
      return m;
    });
  }
};

module.exports = factory;

@@ -636,16 +636,20 @@
 mber.idl
+Type
 %0A      %7D

Fix interface idlType