rem: variables += '    ' + extract_parameter(parameter, argIdx, compoundEnums); 
add:  variables += '    ' + extract_parameter(param, argIdx, compoundEnums); 
context: function construct_parameters(methodList, numArgs, funcCall, compoundEnums){    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');        var variables = '';        params += '        if(';        for(var argIdx = 0; argIdx < numArgs; ++argIdx)        {            var parameter = memberArgList.item(argIdx).toElement();            var paramType = parameter.firstChildElement('type').toElement().toString();	    var coreParamType = findCoreParamType(paramType);debug('paramType: "' + paramType + '" coreParamType = "' + coreParamType + '"');            if (isBool(coreParamType))                params += 'object'+argIdx+' && object'+argIdx+'->isBoolean()';            else if ( isNumber(coreParamType) ||                  isEnum(coreParamType, compoundEnums ) )                params += 'object'+argIdx+' && object'+argIdx+'->isNumber()';            else if (coreParamType == 'QString')                params += 'object'+argIdx+' && object'+argIdx+'->isString()';           else //if(isVariant(paramType))                params += 'object'+argIdx+' && object'+argIdx+'->inherits(&' + coreParamType + 'Binding::info)';//            else//                params += 'isBasic(value'+argIdx+')';            if(argIdx < numArgs-1)                params += ' && ';            variables += '    ' + extract_parameter(parameter, argIdx, compoundEnums);        }        params += ')\n';        params += '        {\n';        params += variables;	params += '            ' + funcCall;        params += '        }\n';    }    return params;}
meta: 1078	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1078/b9a5f8301280755e3f059f8636150ca9ebeb1a4f/generatebinding.js/buggy/kjsembed/autobind/values/generatebinding.js