[nem-en] Completion
vc
vc at rsdn.ru
Mon Jun 5 03:11:00 CEST 2006
Hi,
1. I try use completion for the following strings:
try_completion ("Fo");
try_completion ("");
try_completion ("def _ = 0; ");
and resalt is errors and exceptions:
================================================
Completion member: method Example.SomeClass.Bar() : void
Trying to complete: 'Fo'
C:\VS\Nemerle\Work\nemerle\trunk\ncc\testsuite\completion-playground\compl-s
2.n:22:12:22:25: error: none of the meanings of `Fo<COMPL>' meets th
e type ?:
C:\VS\Nemerle\Work\nemerle\trunk\ncc\testsuite\completion-playground\compl-s
2.n:22:12:22:25: error: trying to access an instance member Exampl
e.SomeClass.Foo without an object
C:\VS\Nemerle\Work\nemerle\trunk\ncc\testsuite\completion-playground\compl-s
2.n:22:12:22:25: error: trying to access an instance member Exampl
e.SomeClass.Foo2 without an object
Member found:
==========
Finished
================================================
Trying to complete: ''
error: expression without content is not allowed here
Nemerle.Compiler.Recovery: Exception of type 'Nemerle.Compiler.Recovery' was
thrown.
at Nemerle.Compiler.Message.FatalError['a](Location loc, String m) in
C:\VS\Nemerle\Work\nemerle\trunk\ncc\parsing\Utility.n:line 256
at Nemerle.Compiler.Message.FatalError['a](String m) in
C:\VS\Nemerle\Work\nemerle\trunk\ncc\parsing\Utility.n:line 261
at Nemerle.Compiler.MainParser.ParseExpr(GlobalEnv env, LexerBase lexer,
Boolean allow_empty) in C:\VS\Nemerle\Work\nemerle\trunk\ncc\parsing
\MainParser.n:line 141
at Nemerle.Completion.Engine.RunCompletionEngine(IMember member, String
contents) in C:\VS\Nemerle\Work\nemerle\trunk\ncc\completion\CodeComp
letionEngine.n:line 346
at _N_AutoModule._N_try_completion3872(_N_closure3822 _N_Main_cp3871,
String body) in C:\MyProjects\Tests\Nemerle\Compl5\Compl5\Main.n:line 8
4
Trying to complete: 'def _ = 0; '
Member found:
==========
Finished
================================================
2. For implementing complete word in VS 2005 I need to have the list of
accessible substitutions for an empty string (all possible in some context).
3. I do not understand how will work completion if user type code in the
middle of function. For example, if in method body is no closing bracket.
4. I need to receive the list of all accessible types in the project
(declared and imported).
5. If the body of a method changed, all locations below it become incorrect.
But the structure of a compilation units thus does not vary. Well to have an
opportunity to update all locations if method body changed.
Vlad
More information about the devel-en
mailing list