[Gambas-user] Finding all function calls in IDE

Fabien Bodard gambas.fr at ...626...
Fri Dec 11 10:19:36 CET 2015


2015-12-11 10:09 GMT+01:00 Rolf-Werner Eilert <eilert-sprachen at ...221...>:
> The profiler is a nice thing :) but it can list only functions that were
> jumped at during runtime. The same with your function.
>
> I've just found a "solution" after all: I jumped to the function and
> gave its name in the Find list for the whole project. Up comes a list
> which you can click on. There are couple of lines with comments with the
> word which didn't count, but I found all calls and could remove the
> arguments successfully.
>
> Regards
great !
> Rolf
>
>
> Am 11.12.2015 09:31, schrieb Fabien Bodard:
>> You can use the profiler,that will give you a list of the call
>>
>> then you can do that by hand.
>>
>> make a collection with the name of the arguments:
>>
>> Private hCol as Collection = ["ARG1":0, "ARG2":0,...]
>>
>>
>>
>> MyFunction(arg1, arg2,arg3...
>>
>> if arg1 then Inc hCol["ARG1"]
>> if arg2 then Inc hCol["ARG1"]
>>
>> end
>>
>>
>> Public sub MyForm_Close()
>>
>> for each i in hCol
>>
>> if i = 0 then print hCol.key & " is not used anymore"
>>
>> next
>>
>> end
>>
>>
>>
>>
>> 2015-12-11 9:01 GMT+01:00 Rolf-Werner Eilert <eilert-sprachen at ...221...>:
>>> Hi folks,
>>>
>>> There are some functions in a program which have too many arguments
>>> (arguments which aren't used in the function). I know that these
>>> functions are called from a number of places in the program.
>>>
>>> So if I want to get rid of these superfluous arguments, I would like to
>>> find all calls to this function. Is there a way in the IDE to get a list
>>> of the calls? Or do I have to do it with trial and error, killing the
>>> arguments, starting the program and wait for error messages?
>>>
>>> Regards
>>> Rolf
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Gambas-user mailing list
>>> Gambas-user at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard




More information about the User mailing list