method property

String get method

Convert to the LSP method string.

Implementation

String get method {
  switch (this) {
    case LspOperation.goToDefinition:
      return 'textDocument/definition';
    case LspOperation.findReferences:
      return 'textDocument/references';
    case LspOperation.hover:
      return 'textDocument/hover';
    case LspOperation.documentSymbol:
      return 'textDocument/documentSymbol';
    case LspOperation.workspaceSymbol:
      return 'workspace/symbol';
    case LspOperation.goToImplementation:
      return 'textDocument/implementation';
    case LspOperation.prepareCallHierarchy:
      return 'textDocument/prepareCallHierarchy';
    case LspOperation.incomingCalls:
      return 'textDocument/prepareCallHierarchy';
    case LspOperation.outgoingCalls:
      return 'textDocument/prepareCallHierarchy';
  }
}