[Geany] variable declaration in function -> symbol view
Harold Aling
h.aling at xxxxx
Tue Jul 31 12:33:34 UTC 2007
On Tue, 31 Jul 2007 13:11:07 +0100, Nick Treleaven <nick.treleaven at btinternet.com> wrote:
> On 07/31/2007 12:49:56 PM, Harold Aling wrote:
>> Dear list,
>>
>> When declaring variables in a function declaration, those variables
>> aren't added to the symbol list...
>>
>> For example:
>>
>> <?php
>> function addVariable($bVar) {
>> //do stuff
>> }
>> ?>
>>
>> $bVar should be added to the list, but isn't.
>>
> I don't use PHP, but for nearly all the other filetypes local variables
> aren't parsed by Geany. If they were, the symbol list would get too big
> (e.g. a lot of 'i' entries).
Geany does add local variables (declared within a function 'functionName() {' scope) to the symbol viewer.
$bVar = true;
function setVar() {
$bVar = true;
}
adds 2 'bVar' variables to the symbol viewer with different line numbers. This is IMHO the correct behavior.
Declaring a variable in the function declaration doesn't add these variables to the symbol viewer. IHMO(again) that's an inconsistent behavior...
-H-
> For function arguments, just use the
> function name tag.
>
> Regards,
> Nick
More information about the Users
mailing list