semanticPromptLineBefore method
Finds the nearest primary semantic prompt strictly before line.
Implementation
int? semanticPromptLineBefore(int line) {
_pruneSemanticPromptAnchors();
int? result;
for (final anchor in _semanticPromptAnchors) {
if (anchor.y >= line) break;
result = anchor.y;
}
return result;
}