class Crystalline::Project
- Crystalline::Project
- Reference
- Object
Defined in:
crystalline/project.crConstructors
Class Method Summary
-
.best_fit_for_file(projects : Array(Project), file_uri : URI) : Project | Nil
Finds the best-fitting project to use for the given file.
-
.find_in_workspace_root(workspace_root_uri : URI) : Array(Project)
Finds and returns an array of all projects in the workspace root.
Instance Method Summary
-
#default_lib_path
Path to the shards "lib" path for this project.
-
#dependencies : Set(String)
The dependencies of the project, meaning the list of files required by the compilation target (entry point).
-
#dependencies=(dependencies : Set(String))
The dependencies of the project, meaning the list of files required by the compilation target (entry point).
-
#distance_to_dependency(file_uri : URI) : Int32 | Nil
Finds the path-wise distance to the given file URI.
-
#entry_point? : URI | Nil
Determines the project entry point.
-
#root_uri : URI
The project root filesystem uri.
Constructor Detail
Class Method Detail
Finds the best-fitting project to use for the given file.
Finds and returns an array of all projects in the workspace root.
Instance Method Detail
The dependencies of the project, meaning the list of files required by the compilation target (entry point).
The dependencies of the project, meaning the list of files required by the compilation target (entry point).
Finds the path-wise distance to the given file URI. If the file URI is not a dependency of this workspace's entry point, returns nil.