[svn] r6376: nemerle/trunk/ncc: completion/CodeCompletionEngine.n
typing/Typer.n
nazgul
svnadmin at nemerle.org
Tue Jun 6 22:44:00 CEST 2006
Log:
Fix two crashes in completion engine
Author: nazgul
Date: Tue Jun 6 22:43:57 2006
New Revision: 6376
Modified:
nemerle/trunk/ncc/completion/CodeCompletionEngine.n
nemerle/trunk/ncc/typing/Typer.n
Modified: nemerle/trunk/ncc/completion/CodeCompletionEngine.n
==============================================================================
--- nemerle/trunk/ncc/completion/CodeCompletionEngine.n (original)
+++ nemerle/trunk/ncc/completion/CodeCompletionEngine.n Tue Jun 6 22:43:57 2006
@@ -343,7 +343,7 @@
def lexer = LexerCompletion (this, my_body + " ", my_body.Length);
observed_method.GetHeader ().body =
- FunBody.Parsed (MainParser.ParseExpr (env, lexer));
+ FunBody.Parsed (MainParser.ParseExpr (env, lexer, true));
try
{
Modified: nemerle/trunk/ncc/typing/Typer.n
==============================================================================
--- nemerle/trunk/ncc/typing/Typer.n (original)
+++ nemerle/trunk/ncc/typing/Typer.n Tue Jun 6 22:43:57 2006
@@ -2497,7 +2497,7 @@
//Message.Debug ($ "type name g: $globals $from_global");
match (from_this + from_global) {
- | [] =>
+ | [] when !for_completion =>
if (globals.IsEmpty) {
ReportError (messenger,
$ "unbound name `$expr'");
More information about the svn
mailing list