Exemplo n.º 1
0
 protected virtual T VisitPyExpressionStatement(PyExpressionStatement node)
 {
     if (ThrowNotImplementedException)
     {
         throw new NotImplementedException(string.Format("Method {0} is not supported in class {1}", "VisitPyExpressionStatement", this.GetType().FullName));
     }
     return(default(T));
 }
Exemplo n.º 2
0
        protected override IPyStatement VisitPyExpressionStatement(PyExpressionStatement node)
        {
            var newExpression = Simplify(node.Expression);

            return(newExpression == node.Expression ? node : new PyExpressionStatement(newExpression));
        }