[Monodevelop-patches-list] r2788 - in trunk/MonoDevelop/Extras/BooBinding: . Parser
Peter Johanson <latexer@gentoo.org>
pjohanson at mono-cvs.ximian.com
Mon Aug 29 13:35:21 EDT 2005
Author: pjohanson
Date: 2005-08-29 13:35:20 -0400 (Mon, 29 Aug 2005)
New Revision: 2788
Modified:
trunk/MonoDevelop/Extras/BooBinding/ChangeLog
trunk/MonoDevelop/Extras/BooBinding/Parser/Visitor.boo
Log:
Fix parser off-by-one error.
Modified: trunk/MonoDevelop/Extras/BooBinding/ChangeLog
===================================================================
--- trunk/MonoDevelop/Extras/BooBinding/ChangeLog 2005-08-29 17:05:12 UTC (rev 2787)
+++ trunk/MonoDevelop/Extras/BooBinding/ChangeLog 2005-08-29 17:35:20 UTC (rev 2788)
@@ -1,3 +1,7 @@
+2005-08-29 Peter Johanson <latexer at gentoo.org>
+
+ * Parser/Visitor.boo: Fix line number off-by-one error.
+
2005-08-23 Peter Johanson <latexer at gentoo.org>
* BooBindingCompilerServices.boo: Add support for compiling in
Modified: trunk/MonoDevelop/Extras/BooBinding/Parser/Visitor.boo
===================================================================
--- trunk/MonoDevelop/Extras/BooBinding/Parser/Visitor.boo 2005-08-29 17:05:12 UTC (rev 2787)
+++ trunk/MonoDevelop/Extras/BooBinding/Parser/Visitor.boo 2005-08-29 17:35:20 UTC (rev 2788)
@@ -88,7 +88,7 @@
private def GetRegion(m as AST.Node):
l = m.LexicalInfo
return null if (l.Line < 0)
- return DefaultRegion(l.Line - 1, 0 /*l.Column*/, l.Line, GetLineEnd(l.Line))
+ return DefaultRegion(l.Line, 0 /*l.Column*/, l.Line, GetLineEnd(l.Line))
private def GetClientRegion(m as AST.Node) as DefaultRegion:
l = m.LexicalInfo
@@ -109,7 +109,7 @@
l2 = m.EndSourceLocation
return null if l2 == null or l2.Line < 0 or l.Line == l2.Line
// TODO: use l.Column / l2.Column when the tab-bug has been fixed
- return DefaultRegion(l.Line - 1, GetLineEnd(l.Line), l2.Line, GetLineEnd(l2.Line))
+ return DefaultRegion(l.Line, GetLineEnd(l.Line), l2.Line, GetLineEnd(l2.Line))
override def OnImport(p as AST.Import):
u = Using()
More information about the Monodevelop-patches-list
mailing list