function set_scope(node, { next, state }) {
	const scope = state.scopes.get(node);
	next(scope !== undefined && scope !== state.scope ? { ...state, scope } : state);
}
@template {{ scope: Scope, scopes: Map<AST.SvelteNode, Scope> }} State
@param {AST.SvelteNode} node
@param {Context<AST.SvelteNode, State>} context