class

Dragonstone::ModuleResolver

Inherits Reference < Object

Constructors

new(config : ModuleConfig, cache : Dragonstone::ModuleCache = ModuleCache.new, graph : Dragonstone::ModuleGraph = ModuleGraph.new)
Source

Instance methods

base_directory(path : String) : String
Source
cache
Source
config
Source
expand_use_item(item : AST::UseItem, base_dir : String, exclude_path : String | Nil = nil) : Array(String)

Expand a UseItem into concrete file paths.

Source
graph
Source
resolve(entry_path : String) : Array(String)

Resolve all use directives reachable from entry_path, then returns a topo sorted list of canonical file paths.

Source
syslib_entry_path
Source
syslib_root_path
Source