(name, vars, deps)
| 2352 | |
| 2353 | |
| 2354 | def _get_depend_dict(name, vars, deps): |
| 2355 | if name in vars: |
| 2356 | words = vars[name].get('depend', []) |
| 2357 | |
| 2358 | if '=' in vars[name] and not isstring(vars[name]): |
| 2359 | for word in word_pattern.findall(vars[name]['=']): |
| 2360 | # The word_pattern may return values that are not |
| 2361 | # only variables, they can be string content for instance |
| 2362 | if word not in words and word in vars and word != name: |
| 2363 | words.append(word) |
| 2364 | for word in words[:]: |
| 2365 | for w in deps.get(word, []) \ |
| 2366 | or _get_depend_dict(word, vars, deps): |
| 2367 | if w not in words: |
| 2368 | words.append(w) |
| 2369 | else: |
| 2370 | outmess(f'_get_depend_dict: no dependence info for {repr(name)}\n') |
| 2371 | words = [] |
| 2372 | deps[name] = words |
| 2373 | return words |
| 2374 | |
| 2375 | |
| 2376 | def _calc_depend_dict(vars): |
no test coverage detected
searching dependent graphs…