UNPKG

aran

Version:
23 lines (20 loc) 610 B
import { ROOT_DEPTH } from "../depth.mjs"; import { optimizePointcut } from "./pointcut.mjs"; import { weaveProgram } from "./visit.mjs"; export { aspect_kind_enumeration } from "./aspect.mjs"; /** * @type {( * root: import("../atom.d.ts").ArgProgram, * config: import("./config-internal.d.ts").InternalConfig, * ) => import("../atom.d.ts").ResProgram} */ export const weave = (root, { initial_state, pointcut }) => weaveProgram( { origin: root, parent: null }, { initial: initial_state }, { depth: ROOT_DEPTH, pointcut: optimizePointcut(pointcut), root, }, );