return false;
}
}
}
ParsePathNode parseNode = parentNode;
while (parseNode != null) {
if (parseNode.getElementType() instanceof SequenceElementType) {
SequenceElementType sequenceElementType = (SequenceElementType) parseNode.getElementType();
int index = parseNode.getCurrentSiblingIndex();
if ( sequenceElementType.containsLandmarkTokenFromIndex(tokenType, index + 1)) {
if (advanced || !lenient) {
builder.markerDone(marker, unknownElementType);
} else {
builder.markerRollbackTo(marker, null);
}
return true;
}
}
parseNode = parseNode.getParent();
}
}
builder.advanceLexer(parentNode);
advanced = true;
}