1
0
Fork 0

Simplified ClassBuilder.buildMembers params

This cuts down on the excessive parameter length and opens up room for
additional metadata generation. Some slight foreshadowing here.
perfodd
Mike Gerwitz 2014-02-02 22:59:20 -05:00
parent b7a314753a
commit a0a5c61631
1 changed files with 10 additions and 5 deletions

View File

@ -346,9 +346,11 @@ exports.prototype.build = function extend( _, __ )
this._classId, this._classId,
base, base,
prop_init, prop_init,
abstract_methods, {
members, all: members,
static_members, 'abstract': abstract_methods,
'static': static_members,
},
function( inst ) function( inst )
{ {
return new_class.___$$svis$$; return new_class.___$$svis$$;
@ -441,13 +443,16 @@ exports.prototype._getBase = function( base )
exports.prototype.buildMembers = function buildMembers( exports.prototype.buildMembers = function buildMembers(
props, class_id, base, prop_init, abstract_methods, members, props, class_id, base, prop_init, memberdest, staticInstLookup
static_members, staticInstLookup
) )
{ {
var hasOwn = Array.prototype.hasOwnProperty, var hasOwn = Array.prototype.hasOwnProperty,
defs = {}, defs = {},
members = memberdest.all,
abstract_methods = memberdest['abstract'],
static_members = memberdest['static'],
smethods = static_members.methods, smethods = static_members.methods,
sprops = static_members.props, sprops = static_members.props,