From a88519df0af8844d88bf86fbc50c5e8f5008d9fb Mon Sep 17 00:00:00 2001 From: miguel Date: Thu, 23 Apr 2009 05:48:19 +0000 Subject: [PATCH] 2009-04-23 Miguel de Icaza * eval.cs: Make getcompletions silent and enable debugging output if the -v option is passed. git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mcs@132431 e3ebcda4-bce8-0310-ba0a-eca2169e7518 --- mcs/ChangeLog | 3 +++ mcs/eval.cs | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/mcs/ChangeLog b/mcs/ChangeLog index 54478a361a..e24336b0a7 100644 --- a/mcs/ChangeLog +++ b/mcs/ChangeLog @@ -1,5 +1,8 @@ 2009-04-23 Miguel de Icaza + * eval.cs: Make getcompletions silent and enable debugging output + if the -v option is passed. + * namespace.cs (NamespaceEntry.CompletionGetTypesStartingWith): Consider looking up the namespace that matches the prefix being used. diff --git a/mcs/eval.cs b/mcs/eval.cs index 453f00057e..560b277d15 100644 --- a/mcs/eval.cs +++ b/mcs/eval.cs @@ -373,14 +373,16 @@ namespace Mono.CSharp { bool partial_input; CSharpParser parser = ParseString (ParseMode.GetCompletions, input, out partial_input); if (parser == null){ - Console.WriteLine ("DEBUG: No completions available"); + if (CSharpParser.yacc_verbose_flag != 0) + Console.WriteLine ("DEBUG: No completions available"); return null; } Class parser_result = parser.InteractiveResult as Class; if (parser_result == null){ - Console.WriteLine ("Do not know how to cope with !Class yet"); + if (CSharpParser.yacc_verbose_flag != 0) + Console.WriteLine ("Do not know how to cope with !Class yet"); return null; } @@ -636,7 +638,7 @@ namespace Mono.CSharp { parser.Lexer.CompleteOnEOF = true; bool disable_error_reporting; - if (mode == ParseMode.Silent && CSharpParser.yacc_verbose_flag == 0) + if ((mode == ParseMode.Silent || mode == ParseMode.GetCompletions) && CSharpParser.yacc_verbose_flag == 0) disable_error_reporting = true; else disable_error_reporting = false; -- 2.11.4.GIT