1.1 --- a/translator.py Tue Mar 14 18:17:26 2017 +0100
1.2 +++ b/translator.py Tue Mar 14 22:41:14 2017 +0100
1.3 @@ -1384,11 +1384,6 @@
1.4 ref, paths = self.importer.get_module(self.name).special[n.name]
1.5 return TrResolvedNameRef(n.name, ref)
1.6
1.7 - # Temporary names are output program locals.
1.8 -
1.9 - elif n.name.startswith("$t"):
1.10 - return TrResolvedNameRef(n.name, Reference("<var>"), expr=expr)
1.11 -
1.12 # Get the appropriate name for the name reference, using the same method
1.13 # as in the inspector.
1.14
2.1 --- a/transresults.py Tue Mar 14 18:17:26 2017 +0100
2.2 +++ b/transresults.py Tue Mar 14 22:41:14 2017 +0100
2.3 @@ -78,6 +78,14 @@
2.4
2.5 "Return an output representation of the referenced name."
2.6
2.7 + # Temporary names are output program locals.
2.8 +
2.9 + if self.name.startswith("$t"):
2.10 + if self.expr:
2.11 + return "%s = %s" % (encode_path(self.name), self.expr)
2.12 + else:
2.13 + return encode_path(self.name)
2.14 +
2.15 # For sources, any identified static origin will be constant and thus
2.16 # usable directly. For targets, no constant should be assigned and thus
2.17 # the alias (or any plain name) will be used.