Package org.ek9lang.compiler
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
addSource
(CompilableSource source) boolean
isSourcePresent
(String fileName) removeSource
(String fileName) removeSource
(Path path) Remove some source code from the work space.reParseSource
(String uri) Triggers the re-parsing of the source file.reParseSource
(String uri, InputStream inputStream) Typically used via the language server.reParseSource
(Path path) ReParses or loads and parses a source file.
-
Constructor Details
-
Workspace
public Workspace()
-
-
Method Details
-
reParseSource
ReParses or loads and parses a source file. -
reParseSource
Typically used via the language server. -
reParseSource
Triggers the re-parsing of the source file. Normally after an edit so errors can be checked. -
addSource
-
addSource
-
addSource
-
addSource
-
isSourcePresent
-
getSource
-
getSource
-
removeSource
Remove some source code from the work space. Maybe a file has been deleted or renamed. -
removeSource
-
getSources
-