I've wanted enumerable classes for *so long*
abe-winter.github.io
abe-winter.github.io
AMOP is one of the best books I've ever read and despite being over a quarter century old (1991) I've still never seen an object system as well designed.
At minimum you're going to be managing nested scopes, resolving names to values and assigning types to names.
Sample PR from the eslint project that has all these elements:
https://github.com/eslint/eslint/pull/10020/files
IMO dataflow is more useful for dynamically typed languages. In static languages where the type of every name is declared somewhere, tracing values through local scopes and function calls isn't as critical (though still valuable).