Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@novell.com>2009-10-26 17:25:22 +0300
committerMike Krüger <mkrueger@novell.com>2009-10-26 17:25:22 +0300
commit5448fc89ef22d36afc09f63b8a433498b13edc1a (patch)
treeea683ae0c91f59e6be10061f8aed9e4d2e511133 /main/contrib
parentd0da504c0a667973bb11f21e11534625b375a3e1 (diff)
* Src/Visitors/AbstractASTVisitor.cs: Fixed 'Bug 549858 -
Refactoring does not change properties in lambda expressions'. svn path=/trunk/monodevelop/; revision=144850
Diffstat (limited to 'main/contrib')
-rw-r--r--main/contrib/NRefactory/Project/ChangeLog6
-rw-r--r--main/contrib/NRefactory/Project/Src/Visitors/AbstractASTVisitor.cs16
2 files changed, 15 insertions, 7 deletions
diff --git a/main/contrib/NRefactory/Project/ChangeLog b/main/contrib/NRefactory/Project/ChangeLog
index a94d707e5c..55ae2895d2 100644
--- a/main/contrib/NRefactory/Project/ChangeLog
+++ b/main/contrib/NRefactory/Project/ChangeLog
@@ -1,3 +1,9 @@
+2009-10-26 Mike Krüger <mkrueger@novell.com>
+
+ * Src/Visitors/AbstractASTVisitor.cs: Fixed 'Bug 549858 -
+ Refactoring does not change properties in lambda
+ expressions'.
+
2009-10-20 Mike Krüger <mkrueger@novell.com>
* Src/PrettyPrinter/CSharp/CSharpOutputVisitor.cs: Fixed 'Bug
diff --git a/main/contrib/NRefactory/Project/Src/Visitors/AbstractASTVisitor.cs b/main/contrib/NRefactory/Project/Src/Visitors/AbstractASTVisitor.cs
index 65b09e8ea8..b5685e3af1 100644
--- a/main/contrib/NRefactory/Project/Src/Visitors/AbstractASTVisitor.cs
+++ b/main/contrib/NRefactory/Project/Src/Visitors/AbstractASTVisitor.cs
@@ -609,15 +609,17 @@ namespace ICSharpCode.NRefactory.Visitors {
return null;
}
- public virtual object VisitLambdaExpression(LambdaExpression lambdaExpression, object data) {
- Debug.Assert((lambdaExpression != null));
- Debug.Assert((lambdaExpression.Parameters != null));
- Debug.Assert((lambdaExpression.StatementBody != null));
- Debug.Assert((lambdaExpression.ExpressionBody != null));
+ public virtual object VisitLambdaExpression (LambdaExpression lambdaExpression, object data)
+ {
+ Debug.Assert ((lambdaExpression != null));
+ Debug.Assert ((lambdaExpression.Parameters != null));
+ Debug.Assert ((lambdaExpression.StatementBody != null));
+ Debug.Assert ((lambdaExpression.ExpressionBody != null));
foreach (ParameterDeclarationExpression o in lambdaExpression.Parameters) {
- Debug.Assert(o != null);
- o.AcceptVisitor(this, data);
+ Debug.Assert (o != null);
+ o.AcceptVisitor (this, data);
}
+ lambdaExpression.ExpressionBody.AcceptVisitor (this, data);
lambdaExpression.StatementBody.AcceptVisitor(this, data);
return lambdaExpression.ExpressionBody.AcceptVisitor(this, data);
}