X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/d15268ba6eadf89a38087995ff407f50418485fb..refs/heads/eme/build-tools:/lunaix-os/scripts/build-tools/lcfg2/lazy.py?ds=inline diff --git a/lunaix-os/scripts/build-tools/lcfg2/lazy.py b/lunaix-os/scripts/build-tools/lcfg2/lazy.py index ddc02ed..1c634fd 100644 --- a/lunaix-os/scripts/build-tools/lcfg2/lazy.py +++ b/lunaix-os/scripts/build-tools/lcfg2/lazy.py @@ -84,9 +84,14 @@ class Lazy: type_ = astn.attr target = astn.value.id + + return Lazy.from_type(cfgnode, type_, target) + + @staticmethod + def from_type(cfgnode, type_, target): key = Lazy.get_key_from(type_, target) - lz = cfgnode._lazy_table.get(key) + if lz: return key @@ -94,3 +99,4 @@ class Lazy: cfgnode._lazy_table.put(lz) return key +