Class Ek9Service

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

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

  • Constructor Details

  • Method Details

    • getLanguageServer

      protected Ek9LanguageServer getLanguageServer()
    • getWorkspace

      protected Workspace getWorkspace()
    • getCompilerFlags

      protected CompilerFlags getCompilerFlags()
    • getCompilerService

      protected Ek9CompilerService getCompilerService()
    • 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)
    • 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.