# HG changeset patch # User paulb@jeremy # Date 1153773270 -7200 # Node ID b9f526fa9a0fa1279d3548a01da0bb6cd33f5293 # Parent 41d4b988c94d91c0356566ef979207ac147956a9 Introduced support for the same_frame attribute of Invoke. diff -r 41d4b988c94d -r b9f526fa9a0f annotate.py --- a/annotate.py Mon Jul 24 22:33:47 2006 +0200 +++ b/annotate.py Mon Jul 24 22:34:30 2006 +0200 @@ -310,9 +310,14 @@ # NOTE: Now locate and invoke the subprogram. for subprogram in expr: - items = self.make_items(invoke, subprogram) + if hasattr(invoke, "same_frame") and invoke.same_frame: + namespace = self.namespace + else: + items = self.make_items(invoke, subprogram) + namespace = self.make_namespace(items) + annotator = Annotator() - annotator.process(subprogram, self.make_namespace(items), self.global_namespace) + annotator.process(subprogram, namespace, self.global_namespace) # NOTE: Annotate the node with invocation details.