Add missing _loc forwarding.

This commit is contained in:
whitequark 2015-07-04 00:59:03 +03:00
parent ee0990cb5e
commit 561d403ddd
1 changed files with 2 additions and 1 deletions

View File

@ -243,7 +243,8 @@ class ASTTypedRewriter(algorithm.Transformer):
def visit_List(self, node):
node = self.generic_visit(node)
node = asttyped.ListT(type=builtins.TList(),
elts=node.elts, ctx=node.ctx, loc=node.loc)
elts=node.elts, ctx=node.ctx,
begin_loc=node.begin_loc, end_loc=node.end_loc, loc=node.loc)
return self.visit(node)
def visit_Attribute(self, node):