public class HoverUtil extends Object
Constructor and Description |
---|
HoverUtil() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.lsp4j.Hover |
getHoverContent(LSServiceOperationContext hoverContext,
BLangPackage currentBLangPackage,
LSPackageCache packageContext)
get current hover content.
|
static boolean |
isMatchingPosition(DiagnosticPos nodePosition,
org.eclipse.lsp4j.Position textPosition)
check whether given position matches the given node's position.
|
public static boolean isMatchingPosition(DiagnosticPos nodePosition, org.eclipse.lsp4j.Position textPosition)
nodePosition
- position of the current node.textPosition
- position to be matched.Boolean
return true if position are a match else return false.public static org.eclipse.lsp4j.Hover getHoverContent(LSServiceOperationContext hoverContext, BLangPackage currentBLangPackage, LSPackageCache packageContext)
hoverContext
- text document context for the hover provider.currentBLangPackage
- package which currently user working on.Hover
return Hover object.Copyright © 2018 WSO2. All rights reserved.