use of org.apache.flex.compiler.tree.as.IASNode in project vscode-nextgenas by BowlerHatLLC.
the class ActionScriptTextDocumentService method getContainingNodeIncludingStart.
private IASNode getContainingNodeIncludingStart(IASNode node, int offset) {
if (!containsWithStart(node, offset)) {
return null;
}
for (int i = 0, count = node.getChildCount(); i < count; i++) {
IASNode child = node.getChild(i);
IASNode result = getContainingNodeIncludingStart(child, offset);
if (result != null) {
return result;
}
}
return node;
}
Aggregations