@pc_util.Hook(pc_ast.SubscriptExpr)
def SubscriptExpr(self, node):
yield node
+ transient = self.transient()
call = self.call(name="oppc_subscript", code=[
+ self[transient],
self[node.subject],
self[node.index],
])
@pc_util.Hook(pc_ast.RangeSubscriptExpr)
def RangeSubscriptExpr(self, node):
yield node
- call = self.call(name="oppc_subscript", code=[
+ transient = self.transient()
+ call = self.call(name="oppc_range_subscript", code=[
+ self[transient],
self[node.subject],
self[node.start],
self[node.end],