diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-30 15:28:08 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-12 12:50:04 -0600 |
commit | 8d62847854ce2cc132177712efc88607a7e1cfb0 (patch) | |
tree | 9a12b9d2b768202cab959c1f0d42d3aef874dd37 /build-aux/measurestack/util.py | |
parent | cd5e55ebb7d5a51c0a8bd62137ab75a0f6ff1356 (diff) |
measurestack: Rework the nstatic memoization to be easier to think aboutlukeshu/measurestack-refactor
Diffstat (limited to 'build-aux/measurestack/util.py')
-rw-r--r-- | build-aux/measurestack/util.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build-aux/measurestack/util.py b/build-aux/measurestack/util.py index 0af3d02..ae2f998 100644 --- a/build-aux/measurestack/util.py +++ b/build-aux/measurestack/util.py @@ -82,7 +82,7 @@ class Plugin(typing.Protocol): def indirect_callees( self, loc: str, line: str ) -> tuple[typing.Collection[QName], bool] | None: ... - def skipmodels(self) -> dict[BaseName, analyze.SkipModel]: ... + def node_handlers(self) -> dict[BaseName, analyze.NodeHandler]: ... class PluginApplication: @@ -118,8 +118,8 @@ class PluginApplication: placeholder += " at " + self._location_xform(elem.attrs.get("label", "")) return [QName(placeholder)], False - def skipmodels(self) -> dict[BaseName, analyze.SkipModel]: - ret: dict[BaseName, analyze.SkipModel] = {} + def node_handlers(self) -> dict[BaseName, analyze.NodeHandler]: + ret: dict[BaseName, analyze.NodeHandler] = {} for plugin in self._plugins: - ret.update(plugin.skipmodels()) + ret.update(plugin.node_handlers()) return ret |