From 8d2d27200730b4ad0ad529bdc8106e074928f24a Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 8 Feb 2018 15:55:34 +0300 Subject: [PATCH] fixed incorrect children() for ast.NewExpr --- src/slimit/ast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slimit/ast.py b/src/slimit/ast.py index 7458967..a4dc5ce 100644 --- a/src/slimit/ast.py +++ b/src/slimit/ast.py @@ -112,7 +112,7 @@ def __init__(self, identifier, args=None): self.args = [] if args is None else args def children(self): - return [self.identifier, self.args] + return [self.identifier] + self.args class FunctionCall(Node): def __init__(self, identifier, args=None):