public abstract class AbstractItemResolver extends Object
Constructor and Description |
---|
AbstractItemResolver() |
Modifier and Type | Method and Description |
---|---|
protected Predicate<SymbolInfo> |
attachedOrSelfKeywordFilter() |
protected List<org.eclipse.lsp4j.CompletionItem> |
getCompletionItemList(org.eclipse.lsp4j.jsonrpc.messages.Either<List<org.eclipse.lsp4j.CompletionItem>,List<SymbolInfo>> list,
LSContext context)
Populate the completion item list by either list.
|
protected List<org.eclipse.lsp4j.CompletionItem> |
getCompletionItemList(List<SymbolInfo> symbolInfoList,
LSContext context)
Populate the completion item list by considering the.
|
protected List<org.eclipse.lsp4j.CompletionItem> |
getDelimiterBasedCompletionItems(LSServiceOperationContext context)
Get the completion items based on the delimiter token, as an example .
|
protected List<org.eclipse.lsp4j.CompletionItem> |
getPackagesCompletionItems(LSContext ctx)
Get the completion item for a package import.
|
protected List<org.eclipse.lsp4j.CompletionItem> |
getVarDefCompletionItems(LSServiceOperationContext context)
Get variable definition context related completion items.
|
protected boolean |
isInvocationOrInteractionOrFieldAccess(LSServiceOperationContext context)
Check whether the token stream corresponds to a action invocation or a function invocation.
|
abstract List<org.eclipse.lsp4j.CompletionItem> |
resolveItems(LSServiceOperationContext completionContext) |
public abstract List<org.eclipse.lsp4j.CompletionItem> resolveItems(LSServiceOperationContext completionContext)
protected List<org.eclipse.lsp4j.CompletionItem> getCompletionItemList(List<SymbolInfo> symbolInfoList, LSContext context)
symbolInfoList
- list of symbol informationcontext
- Language server operation contextList
list of completion itemsprotected List<org.eclipse.lsp4j.CompletionItem> getCompletionItemList(org.eclipse.lsp4j.jsonrpc.messages.Either<List<org.eclipse.lsp4j.CompletionItem>,List<SymbolInfo>> list, LSContext context)
list
- Either List of completion items or symbol infocontext
- LS Operation ContextList
Completion Items Listprotected boolean isInvocationOrInteractionOrFieldAccess(LSServiceOperationContext context)
context
- Completion operation contextBoolean
Whether invocation or Field Accessprotected List<org.eclipse.lsp4j.CompletionItem> getVarDefCompletionItems(LSServiceOperationContext context)
context
- Completion contextList
List of resolved completion itemsprotected List<org.eclipse.lsp4j.CompletionItem> getPackagesCompletionItems(LSContext ctx)
ctx
- LS Operation contextList
List of packages completion itemsprotected List<org.eclipse.lsp4j.CompletionItem> getDelimiterBasedCompletionItems(LSServiceOperationContext context)
context
- Language Server Service Operation ContextList
Completion Item Listprotected Predicate<SymbolInfo> attachedOrSelfKeywordFilter()
Copyright © 2019 WSO2. All rights reserved.