use of org.springframework.ide.vscode.commons.yaml.structure.YamlStructureParser.SChildBearingNode in project sts4 by spring-projects.
the class YamlCompletionEngine method isLesserIndentRelaxable.
protected final boolean isLesserIndentRelaxable(final SNode currentNode, final SNode contextNode) {
if (!options.includeDeindentedProposals()) {
return false;
}
SChildBearingNode parent = currentNode.getParent();
while (parent != null && parent != contextNode) {
SNode lastChild = parent.getLastRealChild();
if (lastChild != null && lastChild.getStart() >= currentNode.getNodeEnd()) {
return false;
}
parent = parent.getParent();
}
return true;
}
Aggregations