Class Ek9Service

java.lang.Object
org.ek9lang.lsp.Ek9Service
Direct Known Subclasses:
Ek9LanguageServer, Ek9TextDocumentService, Ek9WorkspaceService

abstract class Ek9Service extends Object
Base service for EK9 language compilation.
  • Constructor Details

  • Method Details

    • getLanguageServer

      protected Ek9LanguageServer getLanguageServer()
    • getWorkspace

      protected Workspace getWorkspace()
    • getNearestToken

      protected TokenResult getNearestToken(org.eclipse.lsp4j.TextDocumentPositionParams params)
    • getFilename

      protected String getFilename(org.eclipse.lsp4j.TextDocumentIdentifier textDocument)
    • getFilename

      protected String getFilename(org.eclipse.lsp4j.TextDocumentItem textDocument)
    • getPath

      protected Path getPath(String uri)
    • reportOnCompiledSource

      protected void reportOnCompiledSource(ErrorListener errorListener)
    • clearOldCompiledDiagnostics

      protected void clearOldCompiledDiagnostics(String generalIdentifierOfSource)
    • 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

      void sendWarningBackToClient(String message)
    • sendErrorBackToClient

      void sendErrorBackToClient(String message)
    • sendInfoBackToClient

      void sendInfoBackToClient(String message)
    • sendLogBackToClient

      void sendLogBackToClient(String message)
    • sendLogMessageBackToClient

      void sendLogMessageBackToClient(org.eclipse.lsp4j.MessageParams message)