add something a la CodeModelItem::visibility ?
David Nolden
zwabel at googlemail.com
Sat Sep 19 14:26:42 UTC 2009
Am Freitag 18 September 2009 21:43:14 schrieb Milian Wolff:
> So I should set Kind::Hidden on every (local) _variable_?
>
> Or is it possible to use the uKind and store both in there, i.e. ::Hidden &
>
> ::Variable ? That should work. Though personally that's not really "nice".
>
> Adding a "GlobalVariable" would imo be much nicer. Is that really so
> language- dependent? I'd think pretty much every script language has a
> concept of "global variables".
>
> Please, help me in finding something suitable, else I'm stuck.
Local variables should not be in the code model in the first place. Items
should be only added to the code-model and symbol-table if they are globally
visible (Through Declaration::setInSymbolTable).
Maybe that's your basic problem?
Greetings, David
More information about the KDevelop-devel
mailing list