[Monodevelop-patches-list] r2560 - in trunk/MonoDevelop/Extras/BooBinding: . Parser
Peter Johanson <latexer@gentoo.org>
pjohanson at mono-cvs.ximian.com
Tue May 24 12:22:06 EDT 2005
Author: pjohanson
Date: 2005-05-24 12:22:06 -0400 (Tue, 24 May 2005)
New Revision: 2560
Modified:
trunk/MonoDevelop/Extras/BooBinding/ChangeLog
trunk/MonoDevelop/Extras/BooBinding/Parser/BooParser.boo
Log:
Small fix to cache change.
Modified: trunk/MonoDevelop/Extras/BooBinding/ChangeLog
===================================================================
--- trunk/MonoDevelop/Extras/BooBinding/ChangeLog 2005-05-24 16:07:24 UTC (rev 2559)
+++ trunk/MonoDevelop/Extras/BooBinding/ChangeLog 2005-05-24 16:22:06 UTC (rev 2560)
@@ -1,5 +1,11 @@
2005-05-24 Peter Johanson <latexer at gentoo.org>
+ * Parser/BooParser.boo: One small fix to return
+ a new CompilationUnit instead of null in case
+ of a failed parse attempt.
+
+2005-05-24 Peter Johanson <latexer at gentoo.org>
+
* Parser/Visitor.boo: Cull out compiler
generated fields, and note if errors occured
before this visitor and return immediate if so.
Modified: trunk/MonoDevelop/Extras/BooBinding/Parser/BooParser.boo
===================================================================
--- trunk/MonoDevelop/Extras/BooBinding/Parser/BooParser.boo 2005-05-24 16:07:24 UTC (rev 2559)
+++ trunk/MonoDevelop/Extras/BooBinding/Parser/BooParser.boo 2005-05-24 16:22:06 UTC (rev 2560)
@@ -131,6 +131,9 @@
// for a given file. Keeps our parse info from disappearing
// when there is a parsing error in a file.
if visitor.HadErrors:
+ if cuCache[fileName] is null:
+ return CompilationUnit()
+
return cuCache[fileName] as ICompilationUnitBase
cuCache[fileName] = visitor.Cu
More information about the Monodevelop-patches-list
mailing list