rem: function extract_parameter( parameter, paramIdx, compoundEnums ) 
add: function extract_parameter( param, paramIdx, compoundEnums ) 
context: function extract_parameter( parameter, paramIdx, compoundEnums ){    var extracted = '';    var paramType = parameter.firstChildElement('type').toElement().toString();    var paramVarElement = parameter.firstChildElement('declname').toElement();    var paramVar = paramVarElement.toString();    var paramDefault = parameter.firstChildElement('defval').toElement();    if (paramVarElement.isNull())        paramVar = 'arg' + paramIdx;    coreParamType = findCoreParamType(paramType);    if ( isBool(coreParamType) )    {        extracted +=            '        ' + coreParamType + ' ' + paramVar + ' = KJSEmbed::extractBool(exec, args, ' + paramIdx;        if (!paramDefault.isNull())            extracted += ', ' + paramDefault.toString() + ');\n';        else            extracted += ');\n';        return extracted;    }    else if ( isInteger(coreParamType) )  // integral value    {        extracted +=            '        ' + coreParamType + ' ' + paramVar + ' = KJSEmbed::extractInteger<' + coreParamType + '>(exec, args, ' + paramIdx;        if (!paramDefault.isNull())            extracted += ', ' + paramDefault.toString() + ');\n';        else            extracted += ');\n';        return extracted;    }    else if ( isNumber(coreParamType) )  // integral value    {        extracted +=            '        ' + coreParamType + ' ' + paramVar + ' = KJSEmbed::extractNumber<' + coreParamType + '>(exec, args, ' + paramIdx;        if (!paramDefault.isNull())            extracted += ', ' + paramDefault.toString() + ');\n';        else            extracted += ');\n';        return extracted;    }    else if ( paramType.indexOf('Qt::') != -1 )  // Enum Value    {        extracted +=            '        ' + paramType + ' ' + paramVar + ' = KJSEmbed::extractInteger<' + coreParamType + '>(exec, args, ' + paramIdx;        if (!paramDefault.isNull())            extracted += ', ' + paramDefault.toString() + ');\n';        else            extracted += ');\n';        return extracted;    }    else if ( compoundEnums[paramType] )  // Enum Value    {        extracted +=            '       ' + compoundEnums[paramType] + '::' + paramType + ' ' + paramVar + ' = KJSEmbed::extractInteger<' + compoundEnums[paramType] + '::' + paramType + '>(exec, args, ' + paramIdx + ', ';        if (!paramDefault.isNull())            extracted += compoundEnums[paramType] + '::' + paramDefault.toString() + ');\n';        else            extracted += '0);\n';        return extracted;    }    else if ( isVariant(coreParamType) )    {        extracted +=            '        ' + coreParamType + ' ' + paramVar + ' = KJSEmbed::extractVariant<' + coreParamType + '>(exec, args, ' + paramIdx + ');\n';        return extracted;    }    else    // It's an object, or something else?    {        extracted +=            '        ' + coreParamType + ' ' + paramVar + ' = KJSEmbed::extractObject<' + coreParamType + '>(exec, args, ' + paramIdx + ', ';    }    if (!paramDefault.isNull())        extracted += paramDefault.toString() + ');\n';    else        extracted += '0);\n';    return extracted;}
meta: 1078	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1078/9fe966733b315f61914584d07b5263db64ac106c/generatebinding.js/clean/kjsembed/autobind/values/generatebinding.js