public class ServiceScopeResolver extends CursorPositionResolver
Constructor and Description |
---|
ServiceScopeResolver() |
Modifier and Type | Method and Description |
---|---|
boolean |
isCursorBeforeNode(DiagnosticPos nodePosition,
BLangNode node,
TreeVisitor treeVisitor,
LSServiceOperationContext completionContext)
Check whether the cursor is positioned before the given node start.
|
protected boolean |
isWithinScopeAfterLastChildNode(Node node,
TreeVisitor treeVisitor,
int curLine,
int curCol)
Check whether the given node is within the scope and located after the last child node.
|
public boolean isCursorBeforeNode(DiagnosticPos nodePosition, BLangNode node, TreeVisitor treeVisitor, LSServiceOperationContext completionContext)
CursorPositionResolver
isCursorBeforeNode
in class CursorPositionResolver
nodePosition
- Position of the nodenode
- NodetreeVisitor
- TreeVisitor
current tree visitor instancecompletionContext
- Completion operation contextBoolean
Whether the cursor is before the node start or notprotected boolean isWithinScopeAfterLastChildNode(Node node, TreeVisitor treeVisitor, int curLine, int curCol)
node
- Current Node to evaluatetreeVisitor
- Operation Tree VisitorcurLine
- line of the cursorcurCol
- column of the cursorBoolean
whether the last child node or notCopyright © 2018 WSO2. All rights reserved.