[Monodevelop-patches-list] r2551 - in trunk/MonoDevelop/Extras/BooBinding: . Parser

Peter Johanson <latexer@gentoo.org> pjohanson at mono-cvs.ximian.com
Sat May 21 13:31:57 EDT 2005


Author: pjohanson
Date: 2005-05-21 13:31:57 -0400 (Sat, 21 May 2005)
New Revision: 2551

Modified:
   trunk/MonoDevelop/Extras/BooBinding/ChangeLog
   trunk/MonoDevelop/Extras/BooBinding/Parser/BooParser.boo
Log:
Move filename assignment to after parsing. Should make the class browser work better.


Modified: trunk/MonoDevelop/Extras/BooBinding/ChangeLog
===================================================================
--- trunk/MonoDevelop/Extras/BooBinding/ChangeLog	2005-05-20 14:38:23 UTC (rev 2550)
+++ trunk/MonoDevelop/Extras/BooBinding/ChangeLog	2005-05-21 17:31:57 UTC (rev 2551)
@@ -1,3 +1,9 @@
+2005-05-21  Peter Johanson <latexer at gentoo.org>
+
+	* Parser/BooParser.boo: Move filename assignment to
+	after parsing is complete. Makes the class browser (mostly)
+	work now.
+
 2005-05-19  Peter Johanson <latexer at gentoo.org>
 
 	* BooBinding.mp{p,s}:

Modified: trunk/MonoDevelop/Extras/BooBinding/Parser/BooParser.boo
===================================================================
--- trunk/MonoDevelop/Extras/BooBinding/Parser/BooParser.boo	2005-05-20 14:38:23 UTC (rev 2550)
+++ trunk/MonoDevelop/Extras/BooBinding/Parser/BooParser.boo	2005-05-21 17:31:57 UTC (rev 2551)
@@ -105,8 +105,6 @@
 		// What did we break by doing this extra Step?
 		//num = compilePipe.Find(typeof(ProcessMethodBodiesWithDuckTyping))
 		visitor = Visitor(LineLength:lineLength)
-		for c as IClass in visitor.Cu.Classes:
-			c.Region.FileName = fileName
 		compilePipe[num] = visitor
 		// Remove unneccessary compiler steps
 		while compilePipe.Count > num + 1:
@@ -127,6 +125,11 @@
 		except e:
 			//ShowException(e)
 			print "ShowException ${e}"
+
+		for c as IClass in visitor.Cu.Classes:
+			if c.Region is not null:
+				c.Region.FileName = fileName
+
 		return visitor.Cu
 	
 	def CtrlSpace(parserService as IParserService, project as Project, caretLine as int, caretColumn as int, fileName as string) as ArrayList:




More information about the Monodevelop-patches-list mailing list