[Monodevelop-patches-list] r2189 - in trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory: . src/Parser/AST
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Fri Jan 28 22:15:30 EST 2005
Author: jluke
Date: 2005-01-28 22:15:30 -0500 (Fri, 28 Jan 2005)
New Revision: 2189
Modified:
trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/ChangeLog
trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/src/Parser/AST/LookupTableVisitor.cs
Log:
fix another parser buglet
Modified: trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/ChangeLog 2005-01-29 02:06:23 UTC (rev 2188)
+++ trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/ChangeLog 2005-01-29 03:15:30 UTC (rev 2189)
@@ -1,5 +1,11 @@
2005-01-28 John Luke <john.luke at gmail.com>
+ * src/Parser/AST/LookupTableVisitor.cs:
+ capture parameters in the lookup table for completion
+ fixes bug# 71687
+
+2005-01-28 John Luke <john.luke at gmail.com>
+
* src/*: Merged in sync with #D parser.
makes catch (Exception e) { e. } work and a few
other small fixes
Modified: trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/src/Parser/AST/LookupTableVisitor.cs
===================================================================
--- trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/src/Parser/AST/LookupTableVisitor.cs 2005-01-29 02:06:23 UTC (rev 2188)
+++ trunk/MonoDevelop/Core/src/ICSharpCode.SharpRefactory/src/Parser/AST/LookupTableVisitor.cs 2005-01-29 03:15:30 UTC (rev 2189)
@@ -64,6 +64,12 @@
}
return data;
}
+
+ public override object Visit(ParameterDeclarationExpression parameterDeclaration, object data)
+ {
+ AddVariable (parameterDeclaration.TypeReference, parameterDeclaration.ParameterName, parameterDeclaration.StartLocation, CurrentBlock == null ? new Point(-1, -1) : CurrentBlock.EndLocation);
+ return data;
+ }
// ForStatement and UsingStatement use a LocalVariableDeclaration,
// so they don't need to be visited separately
More information about the Monodevelop-patches-list
mailing list