From 5fc51c6efba9d73813e7357493f8e82282c1e695 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Wed, 21 Oct 2009 23:44:09 +0200 Subject: [PATCH] Version:1.1.39 Version:1.1.40 --- src/parsed_text.py | 8 +++++++- src/version.py | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/parsed_text.py b/src/parsed_text.py index af42a45..78f145e 100644 --- a/src/parsed_text.py +++ b/src/parsed_text.py @@ -339,6 +339,7 @@ def build_sub_needs(): subname = find_subname(line) sub = subroutines[subname] sub.needs = [] + sub.to_provide = vars elif isinstance(line,End): sub.needs = make_single(sub.needs) sub = None @@ -355,7 +356,7 @@ def add_subroutine_needs(): for vars,line in text: if isinstance(line,Call): subname = find_subname(line) - vars = subroutines[subname].needs + vars = subroutines[subname].to_provide result.append( (vars,line) ) main_result.append( (filename, result) ) return main_result @@ -400,6 +401,11 @@ def build_needs(): var = None if var is not None: var.needs += vars + if isinstance(line,Call): + subname = find_subname(line) + var.needs += subroutines[subname].needs + # Need to do the same for functions. Variables inside if blocks of the + # function are not seen in tree. for v in variables.keys(): main = variables[v].same_as if main != v: diff --git a/src/version.py b/src/version.py index 56b3a3d..dadb024 100644 --- a/src/version.py +++ b/src/version.py @@ -1 +1 @@ -version = "1.1.38" +version = "1.1.40"