Class Workspace
java.lang.Object
org.ek9lang.compiler.Workspace
Designed to represent one or more source files that are part of a workspace.
Needs to become thread safe, especially around parsing.
This is because when a user is typing via lsp mode - this will get triggered over and over.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLibrarySource(File file, String packageModuleName) Add a source of a resolved package dependency: compiled with the project, but a library source - never a dev source, and outside the project's coverage and profiling metadata (its own tests covered it when it was packaged).voidvoidvoidvoidaddSource(CompilableSource source) booleanisSourcePresent(String fileName) removeSource(String fileName) removeSource(Path path) Remove some source code from the work space.
-
Constructor Details
-
Workspace
public Workspace() -
Workspace
-
-
Method Details
-
addSource
-
addSource
-
addSource
-
addLibrarySource
Add a source of a resolved package dependency: compiled with the project, but a library source - never a dev source, and outside the project's coverage and profiling metadata (its own tests covered it when it was packaged).- Parameters:
file- the dependency's source file (in the library, outside this workspace's directory)packageModuleName- the module name of the dependency's package
-
addSource
-
isSourcePresent
-
getSource
-
getSource
-
removeSource
Remove some source code from the work space. Maybe a file has been deleted or renamed. -
removeSource
-
getSources
-
getSourceFileBaseDirectory
-