Skip to content
This repository
Browse code

Visit empty expressions.

  • Loading branch information...
commit 58b8d0692282de700ea42669a169def8cebd9afe 1 parent 6abb0a1
Mike Krüger mkrueger authored
5 ICSharpCode.NRefactory/CSharp/Parser/CSharpParser.cs
@@ -1180,6 +1180,11 @@ public override object Visit (Mono.CSharp.EmptyStatement emptyStatement)
1180 1180 return result;
1181 1181 }
1182 1182
  1183 + public override object Visit (Mono.CSharp.EmptyExpression emptyExpression)
  1184 + {
  1185 + return new ICSharpCode.NRefactory.CSharp.EmptyExpression (Convert (emptyExpression.Location));
  1186 + }
  1187 +
1183 1188 public override object Visit (EmptyExpressionStatement emptyExpressionStatement)
1184 1189 {
1185 1190 return new EmptyExpression (Convert (emptyExpressionStatement.Location));
7 ICSharpCode.NRefactory/CSharp/Parser/mcs/expression.cs
@@ -8803,7 +8803,7 @@ public override object Accept (StructuralVisitor visitor)
8803 8803 /// This is also now used as a placeholder where a no-action expression
8804 8804 /// is needed (the `New' class).
8805 8805 /// </summary>
8806   - class EmptyExpression : Expression
  8806 + public class EmptyExpression : Expression
8807 8807 {
8808 8808 sealed class OutAccessExpression : EmptyExpression
8809 8809 {
@@ -8855,6 +8855,11 @@ public override void Emit (EmitContext ec)
8855 8855 public override void EmitSideEffect (EmitContext ec)
8856 8856 {
8857 8857 }
  8858 +
  8859 + public override object Accept (StructuralVisitor visitor)
  8860 + {
  8861 + return visitor.Visit (this);
  8862 + }
8858 8863 }
8859 8864
8860 8865 //
5 ICSharpCode.NRefactory/CSharp/Parser/mcs/visit.cs
@@ -178,6 +178,11 @@ public virtual object Visit (EmptyExpressionStatement emptyExpressionStatement)
178 178 {
179 179 return null;
180 180 }
  181 +
  182 + public virtual object Visit (EmptyExpression emptyExpression)
  183 + {
  184 + return null;
  185 + }
181 186
182 187 public virtual object Visit (If ifStatement)
183 188 {

0 comments on commit 58b8d06

Please sign in to comment.
Something went wrong with that request. Please try again.