class Mint::Workspace
- Mint::Workspace
- Reference
- Object
Overview
A workspace represents a mint project where the root is the directory
containing the mint.json
file.
The workspace provides:
- an up to date AST of the project
- provides packages and information
- emits events for changes
Defined in:
workspace.crConstructors
Class Method Summary
Instance Method Summary
- #[](file)
- #[]?(file)
- #ast
- #cache : Hash(String, Ast)
- #check_env=(check_env : Bool)
- #check_env? : Bool
- #check_everything=(check_everything : Bool)
- #check_everything? : Bool
- #error : Error | Nil
- #files
- #files_pattern : Array(String)
- #format(file)
- #format=(format : Bool)
- #format? : Bool
- #formatter : Formatter
- #initialize_cache(&)
- #json : MintJson
- #on(event, &handler : ChangeProc)
- #packages : Array(Workspace)
- #reset_cache
- #root : String
- #test_path : String | Nil
- #test_path=(value : Nil | String)
- #type_checker : TypeChecker
- #update(contents, file)
- #update_cache
- #watch