|
|
|
|
Re: LDT code analysis and code assistance is not working [message #894585 is a reply to message #891795] |
Mon, 09 July 2012 13:40  |
Eclipse User |
|
|
|
Hi,
1.
This is the expected behavior. The first 'm' is the module (@module m) and the second one the local variable (local m = {}).
This is maybe a bit weird but currently the IDE is not able make the link between this 2 declaration.
2.
The 'type comment block' is used to describe a type, like a file handle in the io module.
This type could be returned by function (like open in io module).
Thanks to this information, in some case, we are able to infer type to local variable and so propose relevant auto-completion.
The 'field comment block' is used to attach a field to a type (or to a module, in fact a module is managed like a type). A field is a table index which is not a function like stdin in the io module.
You could download and add the Lua 5.1 execution environment support to your project to test the io module and so the possibility of type and field comment block.
|
|
|
Powered by
FUDForum. Page generated in 0.09072 seconds