# HG changeset patch # User Paul Boddie # Date 1487353797 -3600 # Node ID 7754692ebe545587663f20b0a5f0e658404ffee6 # Parent 9f9cdaf2638e9efdaeb587138ac5c1060dde5050 Adjust the stored target when processing invocation expressions. diff -r 9f9cdaf2638e -r 7754692ebe54 translator.py --- a/translator.py Fri Feb 17 17:46:49 2017 +0100 +++ b/translator.py Fri Feb 17 18:49:57 2017 +0100 @@ -1146,7 +1146,21 @@ "Process the given invocation node 'n'." + # Any invocations in the expression will store target details in a + # different location. + + self.function_target += 1 + + # Process the expression. + expr = self.process_structure_node(n.node) + + # Reference the current target again. + + self.function_target -= 1 + + # Obtain details of the invocation expression. + objpath = expr.get_origin() location = expr.access_location()