public class HoverUtil extends Object
Constructor and Description |
---|
HoverUtil() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.lsp4j.Hover |
getHoverContent(TextDocumentServiceContext hoverContext,
BLangPackage currentBLangPackage,
BLangPackageContext packageContext)
get current hover content.
|
static org.eclipse.lsp4j.Hover |
getHoverInformation(BLangPackage bLangPackage,
TextDocumentServiceContext hoverContext)
Get the hover information for the given hover context.
|
static boolean |
isMatchingPosition(DiagnosticPos nodePosition,
org.eclipse.lsp4j.Position textPosition)
check whether given position matches the given node's position.
|
public static org.eclipse.lsp4j.Hover getHoverInformation(BLangPackage bLangPackage, TextDocumentServiceContext hoverContext)
bLangPackage
- resolved bLangPackage for the hover context.hoverContext
- context of the hover.public static boolean isMatchingPosition(DiagnosticPos nodePosition, org.eclipse.lsp4j.Position textPosition)
nodePosition
- position of the current node.textPosition
- position to be matched.public static org.eclipse.lsp4j.Hover getHoverContent(TextDocumentServiceContext hoverContext, BLangPackage currentBLangPackage, BLangPackageContext packageContext)
hoverContext
- text document context for the hover provider.currentBLangPackage
- package which currently user working on.Copyright © 2018 WSO2. All rights reserved.