Re: [CEDET-devel] calculation of scope and position in file
Brought to you by:
zappo
From: David E. <de...@ra...> - 2009-07-22 19:05:18
|
Hi Eric, David Engster <de...@ra...> writes: > Eric M. Ludlam <er...@si...> writes: >> If, in your example below, it is getting the *wrong* answer among >> several possible answers, then there is probably some sort of >> order-priority that could be used to fix it. If it only that there is >> an answer when there shouldn't be, it is probably best to leave it be. > Thank you for the explanation. I stumbled upon this with the following > test case: [...] > As you say, this could be fixed by returning the namespaces in the > correct order. I guess this has to be done in the ctxt-scoped-types > override? I'll look into this after work. Actually, the tags get sorted alphabetically in semanticdb-typecache-merge-streams. I removed the call to semantic-sort-tags-by-name-then-type-increasing there and now I get the tags according to the order they appear in the buffer. I'm not sure why the tags get sorted alphabetically in the first place; is it just so that they are more clearly arranged for the user? Then I'd argue the sorting should happen in the higher level functions. -David |