class Mint::Workspace

Overview

A workspace represents a Mint project in the file system.

Defined in:

workspace.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(*, listener : Proc(TypeChecker | Error, Nil) | Nil, include_tests : Bool, dot_env : String, format : Bool, check : Check, path : String) #

[View source]

Instance Method Detail

def artifacts : TypeChecker::Artifacts | Error #

[View source]
def ast(path : String) : Ast | Error | Nil #

[View source]
def ast : Ast | Error #

[View source]
def check #

[View source]
def delete(path : String) : Nil #

[View source]
def format(node : Ast::Node | Nil) : String | Nil #

[View source]
def format(path : String) : String | Error | Nil #

[View source]
def formatter_config #

[View source]
def nodes_at_cursor(*, column : Int64, path : String, line : Int64) : Array(Ast::Node) | Error #

[View source]
def nodes_at_path(path : String) #

[View source]
def reset #

[View source]
def result : TypeChecker | Error #

The current artifacts of the program or the current error.


[View source]
def unchecked_ast #

[View source]
def update(contents : String, path : String) : Nil #

[View source]
def update(files : Array(String), reason : Symbol) #

[View source]