rem: if(isVariant(paramType)) params += '            arg'+argIdx+' = KJSEmbed::extractValue<QColor>(exec, args, '+argIdx+');\n'; else params += '            arg'+argIdx+' = ('+paramType+')KJSEmbed::extractInt(exec, args, '+argIdx+');\n'; 
add: params += extract_parameter(parameter, argIdx); 
context: function extract_parameter_const(methodList, numArgs){    var params = '';    for(var argIdx = 0; argIdx < numArgs; ++argIdx)    {        params += '        KJS::JSValue* value'+argIdx+'=args['+argIdx+'];\n';        params += '        KJS::JSObject* object'+argIdx+'=value'+argIdx+'->toObject(exec);\n';    }    for(var idx = 0; idx < methodList.length; ++idx)    {        var memberArgList = methodList[idx].elementsByTagName('param');        params += '        if(';        for(var argIdx = 0; argIdx < numArgs; ++argIdx)        {            var parameter = memberArgList.item(argIdx).toElement();            var paramType = parameter.firstChildElement('type').toElement().toString();            if(isVariant(paramType))                params += 'object'+argIdx+' && object'+argIdx+'->inherits(&ColorBinding::info) ';            else                params += 'isBasic(value'+argIdx+') ';            if(argIdx < numArgs-1)                params += '&& ';        }        params += '){\n';        for(var argIdx = 0; argIdx < numArgs; ++argIdx)        {            var parameter = memberArgList.item(argIdx).toElement();            if(isVariant(paramType))                params += '            arg'+argIdx+' = KJSEmbed::extractValue<QColor>(exec, args, '+argIdx+');\n';            else            params += '            arg'+argIdx+' = ('+paramType+')KJSEmbed::extractInt(exec, args, '+argIdx+');\n';        }        params += '        }\n'    }//     println(params);    return params;}
meta: 1078	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1078/723a205570547a63ea66136d745a4928bc7b854c/generatebinding.js/clean/kjsembed/autobind/values/generatebinding.js