class Mint::Workspace
- Mint::Workspace
- Reference
- Object
Overview
A workspace represents a Mint project in the file system.
- It provides up to date, type checked artifacts which can be used in other places (bundler, test runner, development server, etc...).
- It watches the appropriate files and recompiles when they change.
- It does a compilation on initialization, so artifacts are ready to be used.
Defined in:
workspace.crConstructors
Instance Method Summary
- #artifacts : TypeChecker::Artifacts | Error
- #ast(path : String) : Ast | Error | Nil
- #ast : Ast | Error
- #check
- #delete(path : String) : Nil
- #format(node : Ast::Node | Nil) : String | Nil
- #format(path : String) : String | Error | Nil
- #formatter_config
- #nodes_at_cursor(*, column : Int64, path : String, line : Int64) : Array(Ast::Node) | Error
- #nodes_at_path(path : String)
- #reset
-
#result : TypeChecker | Error
The current artifacts of the program or the current error.
- #unchecked_ast
- #update(contents : String, path : String) : Nil
- #update(files : Array(String), reason : Symbol)
Constructor Detail
def self.new(*, listener : Proc(TypeChecker | Error, Nil) | Nil, include_tests : Bool, format : Bool, check : Check, path : String)
#
Instance Method Detail
The current artifacts of the program or the current error.