using MSAst = System.Linq.Expressions;
using AstUtils = Microsoft.Scripting.Ast.Utils;
namespace IronPython.Compiler.Ast {
public class EmptyStatement : Statement {
internal static EmptyStatement PreCompiledInstance = new EmptyStatement();
public EmptyStatement() {
}
public override MSAst.Expression Reduce() {
return GlobalParent.AddDebugInfoAndVoid(AstUtils.Empty(), Span);
}
public override void Walk(PythonWalker walker) {
if (walker.Walk(this)) {
}
walker.PostWalk(this);
}
internal override bool CanThrow => false;
}
}