[nem-en] Completion
Alejandro Serrano
trupill at yahoo.es
Mon Jun 5 15:23:03 CEST 2006
vc escribió:
>> Also, remember that Completion Engine does not show keywords.
>>
>
> It's no problem because it's a simple static list. But I need to know how to
> receive the list of extending syntax macro.
>
I don'y know very much about the compiler either, but macros are
supposed to be classes with some custom attribute attached. Maybe you
can check it with Ildasm or Monodis.
>
>> You need to get a IMethod, from where you run RunCompletionEngine. You
>> can look at the Nemerle binding for MonoDevelop to check.
>>
>
> Please, point to a file in which it is possible to see.
>
Extras/NemerleBinding/Parser/Parser.cs
>
>> Instead of getting just the NamespaceTree nodes that are Cached
>> (TypeBuilder) and NamespaceReference, you will have to look at every
>> single node.
>>
>
> I.e. like loop() in compl3.n?
>
Yes, that's the point. You can see the enture TypeInfoCache variant in
the NamespaceTree.n file
>
>> You can update the location in the IDE without affecting any
>> functionality in the Completion Engine.
>>
>
> Directly in AST? It seems to me is better if in it will make by copletion
> engine. I shall transfer to it a range of the changed text and it
> recalculate location. This functionality is necessary in all IDE.
>
I don't know hoy it works with the VSIP, but MD recalculates the
locations by itself in its wrapping interfaces, so I don't have to worry
about this: I just get the actual method body with MD methods and pass
it to the Completion Engine.
______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
More information about the devel-en
mailing list