From 16084f83c004eaada12b79f3d7b9242d7ee7c526 Mon Sep 17 00:00:00 2001 From: Marcell Vazquez-Chanlatte Date: Wed, 1 Mar 2017 23:17:07 -0800 Subject: [PATCH] add default children function to ast elements --- stl/ast.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stl/ast.py b/stl/ast.py index 6ed256a..af1c3a0 100644 --- a/stl/ast.py +++ b/stl/ast.py @@ -36,6 +36,9 @@ class AST(object): def __invert__(self): return Neg(self) + def children(self): + return [] + class _Top(AST): def __repr__(self):