import head_default from "../../../../../../lodash-es/head.js";
import isUndefined_default from "../../../../../../lodash-es/isUndefined.js";
import { NextAfterTokenWalker, nextPossibleTokensAfter } from "../../grammar/interpreter.js";
var ContentAssist = class {
	initContentAssist() {}
	computeContentAssist(e, n) {
		let i = this.gastProductionsCache[e];
		if (isUndefined_default(i)) throw Error(`Rule ->${e}<- does not exist in this grammar.`);
		return nextPossibleTokensAfter([i], n, this.tokenMatcher, this.maxLookahead);
	}
	getNextPossibleTokenTypes(t) {
		let r = head_default(t.ruleStack), i = this.getGAstProductions()[r];
		return new NextAfterTokenWalker(i, t).startWalking();
	}
};
export { ContentAssist };
