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,
base,
prop_init,
abstract_methods,
members,
static_members,
{
all: members,
'abstract': abstract_methods,
'static': static_members,
},
function( inst )
{
return new_class.___$$svis$$;
@ -441,13 +443,16 @@ exports.prototype._getBase = function( base )
exports.prototype.buildMembers = function buildMembers(
props, class_id, base, prop_init, abstract_methods, members,
static_members, staticInstLookup
props, class_id, base, prop_init, memberdest, staticInstLookup
)
{
var hasOwn = Array.prototype.hasOwnProperty,
defs = {},
members = memberdest.all,
abstract_methods = memberdest['abstract'],
static_members = memberdest['static'],
smethods = static_members.methods,
sprops = static_members.props,