export function shouldAutoCompleteYield(query, offset) {
    const yieldTriggerPhrase = 'yield ';
    const text = query.slice(0, offset);
    const yieldStart = offset - yieldTriggerPhrase.length;
    if (yieldStart >= 0) {
        const precedingText = text.slice(yieldStart, offset);
        return precedingText.toLowerCase() === yieldTriggerPhrase;
    }
    return false;
}
//# sourceMappingURL=autocompletionHelpers.js.map