[nem-en] Using: distinguishing between namespace and
static class name
Michal Moskal
michal.moskal at gmail.com
Wed Aug 2 07:02:54 CEST 2006
On 8/1/06, Igor Tkachev <it at rsdn.ru> wrote:
> Hello Michal,
>
> > Sorry, but I'm not much into the topic. Could you please explain how
> > do you call into the compiler? Using the completion engine?
>
> Yes.
>
> I dug more deeply and found the ParseTopLevelImpl method
> (PreParser.n). It looks like it's possible to identify aliases. But
> distinguishing between namespaces and classes is still questionable.
>
> If this is preparse stage, maybe I have to resolve the names I get?
Yes, the problem seems to be that at this stage you don't really know
what classes or namespaces are going to be defined in this and other
files. You can check with external types (for example with the
GlobalEnv class), but for the ones defined in the current assembly it
is going to be hard.
In the VS you probably need some ``non-precise'' solution. For example
if you have the type tree returned from some previous run of the code
completion engine, you can check with it.
--
Michał
More information about the devel-en
mailing list