[Monodevelop-patches-list] r2229 - trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/src

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Thu Feb 3 12:10:43 EST 2005


Author: jluke
Date: 2005-02-03 12:10:42 -0500 (Thu, 03 Feb 2005)
New Revision: 2229

Modified:
   trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/src/Main.cs
Log:
fix test


Modified: trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/src/Main.cs
===================================================================
--- trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/src/Main.cs	2005-02-03 01:40:29 UTC (rev 2228)
+++ trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/src/Main.cs	2005-02-03 17:10:42 UTC (rev 2229)
@@ -9,7 +9,6 @@
 using ICSharpCode.SharpRefactory.PrettyPrinter;
 using ICSharpCode.SharpRefactory.Parser;
 
-
 class MainClass
 {
 /*
@@ -81,21 +80,23 @@
 //		PrettyPrintDirectories();
 		Parser p = new Parser();
 		string fileName = args[0];
-		Console.Write("Converting : " + fileName);
-		p.Parse(new Lexer(new FileReader(fileName)));
+		Console.WriteLine ("Converting : " + fileName);
+		p.Parse (new Lexer (new FileReader (fileName)));
 		if (p.Errors.count == 0) {
 			StreamReader sr = File.OpenText(fileName);
 			string content = sr.ReadToEnd();
 			sr.Close();
 			PrettyPrintVisitor ppv = new PrettyPrintVisitor(content);
+			Console.WriteLine (typeof (PrettyPrintVisitor));
 			ppv.Visit(p.compilationUnit, null);
 			
 			Console.WriteLine(ppv.Text);
 			
 			Console.WriteLine(" done.");
 		} else {
-			Console.Write(" Source code errors:");
-			Console.WriteLine(p.Errors.ErrorOutput);
+			Console.WriteLine (" Source code errors:");
+			foreach (ErrorInfo error in p.Errors.ErrorInformation)
+				Console.WriteLine (error.ToString ());
 		}
 	}
 }




More information about the Monodevelop-patches-list mailing list