Permalink
Browse files

Visit empty expressions.

  • Loading branch information...
1 parent 6abb0a1 commit 58b8d0692282de700ea42669a169def8cebd9afe @mkrueger mkrueger committed Jul 22, 2011
View
5 ICSharpCode.NRefactory/CSharp/Parser/CSharpParser.cs
@@ -1180,6 +1180,11 @@ public override object Visit (Mono.CSharp.EmptyStatement emptyStatement)
return result;
}
+ public override object Visit (Mono.CSharp.EmptyExpression emptyExpression)
+ {
+ return new ICSharpCode.NRefactory.CSharp.EmptyExpression (Convert (emptyExpression.Location));
+ }
+
public override object Visit (EmptyExpressionStatement emptyExpressionStatement)
{
return new EmptyExpression (Convert (emptyExpressionStatement.Location));
View
7 ICSharpCode.NRefactory/CSharp/Parser/mcs/expression.cs
@@ -8803,7 +8803,7 @@ public override object Accept (StructuralVisitor visitor)
/// This is also now used as a placeholder where a no-action expression
/// is needed (the `New' class).
/// </summary>
- class EmptyExpression : Expression
+ public class EmptyExpression : Expression
{
sealed class OutAccessExpression : EmptyExpression
{
@@ -8855,6 +8855,11 @@ public override void Emit (EmitContext ec)
public override void EmitSideEffect (EmitContext ec)
{
}
+
+ public override object Accept (StructuralVisitor visitor)
+ {
+ return visitor.Visit (this);
+ }
}
//
View
5 ICSharpCode.NRefactory/CSharp/Parser/mcs/visit.cs
@@ -178,6 +178,11 @@ public virtual object Visit (EmptyExpressionStatement emptyExpressionStatement)
{
return null;
}
+
+ public virtual object Visit (EmptyExpression emptyExpression)
+ {
+ return null;
+ }
public virtual object Visit (If ifStatement)
{

0 comments on commit 58b8d06

Please sign in to comment.