Dragonstone::ModuleResolver
Constructors
new(config : ModuleConfig, cache : Dragonstone::ModuleCache = ModuleCache.new, graph : Dragonstone::ModuleGraph = ModuleGraph.new)
SourceInstance methods
cache
Sourceconfig
Sourceexpand_use_item(item : AST::UseItem, base_dir : String, exclude_path : String | Nil = nil) : Array(String)
Expand a UseItem into concrete file paths.
graph
SourceResolve all use directives reachable from entry_path,
then returns a topo sorted list of canonical file paths.
syslib_entry_path
Sourcesyslib_root_path
Source