public abstract class AbstractItemResolver extends Object
Constructor and Description |
---|
AbstractItemResolver() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isInvocationOrFieldAccess(TextDocumentServiceContext documentServiceContext)
Check whether the token stream corresponds to a action invocation or a function invocation.
|
protected void |
populateBasicTypes(List<org.eclipse.lsp4j.CompletionItem> completionItems,
List<SymbolInfo> visibleSymbols) |
protected org.eclipse.lsp4j.CompletionItem |
populateCompletionItem(String insertText,
String type,
String label)
Populate a completion item with the given data and return it.
|
protected void |
populateCompletionItemList(List<SymbolInfo> symbolInfoList,
List<org.eclipse.lsp4j.CompletionItem> completionItems)
Populate the completion item list by considering the.
|
abstract ArrayList<org.eclipse.lsp4j.CompletionItem> |
resolveItems(TextDocumentServiceContext completionContext) |
public abstract ArrayList<org.eclipse.lsp4j.CompletionItem> resolveItems(TextDocumentServiceContext completionContext)
protected void populateCompletionItemList(List<SymbolInfo> symbolInfoList, List<org.eclipse.lsp4j.CompletionItem> completionItems)
symbolInfoList
- - list of symbol informationcompletionItems
- - completion item list to populateprotected boolean isInvocationOrFieldAccess(TextDocumentServiceContext documentServiceContext)
documentServiceContext
- - Completion operation contextBoolean
protected org.eclipse.lsp4j.CompletionItem populateCompletionItem(String insertText, String type, String label)
insertText
- insert texttype
- type of the completion itemlabel
- completion item labelCompletionItem
protected void populateBasicTypes(List<org.eclipse.lsp4j.CompletionItem> completionItems, List<SymbolInfo> visibleSymbols)
Copyright © 2018 WSO2. All rights reserved.