loadedModuleCount property

int get loadedModuleCount

Step #3 (retention) — number of bundle modules currently loaded and cached in _moduleCache (each holds an SCompilationUnit AST). Read-only introspection so D4rtRunner can assert prior runs' ASTs are not accumulated. Bridged-module envs (no user AST) are not counted.

Implementation

int get loadedModuleCount => _moduleCache.length;