Package org.ek9lang.lsp
Class Ek9Service
java.lang.Object
org.ek9lang.lsp.Ek9Service
- Direct Known Subclasses:
Ek9LanguageServer
,Ek9TextDocumentService
,Ek9WorkspaceService
Base service for EK9 language compilation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
clearOldCompiledDiagnostics
(String generalIdentifierOfSource) protected String
getFilename
(org.eclipse.lsp4j.TextDocumentIdentifier textDocument) protected String
getFilename
(org.eclipse.lsp4j.TextDocumentItem textDocument) protected Ek9LanguageServer
protected TokenResult
getNearestToken
(org.eclipse.lsp4j.TextDocumentPositionParams params) protected Path
protected Workspace
protected void
reportOnCompiledSource
(ErrorListener errorListener) (package private) void
sendDiagnostics
(org.eclipse.lsp4j.PublishDiagnosticsParams diagnostics) This is how to send compiler errors back.(package private) void
sendErrorBackToClient
(String message) (package private) void
sendInfoBackToClient
(String message) (package private) void
sendLogBackToClient
(String message) (package private) void
sendLogMessageBackToClient
(org.eclipse.lsp4j.MessageParams message) (package private) void
sendWarningBackToClient
(String message)
-
Constructor Details
-
Ek9Service
Ek9Service() -
Ek9Service
Ek9Service(Ek9LanguageServer languageServer)
-
-
Method Details
-
getLanguageServer
-
getWorkspace
-
getNearestToken
-
getFilename
-
getFilename
-
getPath
-
reportOnCompiledSource
-
clearOldCompiledDiagnostics
-
sendDiagnostics
void sendDiagnostics(org.eclipse.lsp4j.PublishDiagnosticsParams diagnostics) This is how to send compiler errors back.- Parameters:
diagnostics
- The set of diagnostics to be returned to the user.
-
sendWarningBackToClient
-
sendErrorBackToClient
-
sendInfoBackToClient
-
sendLogBackToClient
-
sendLogMessageBackToClient
void sendLogMessageBackToClient(org.eclipse.lsp4j.MessageParams message)
-