UNPKG

@webqit/quantum-js

Version:

Runtime extension to JavaScript that let's us do Imperative Reactive Programming (IRP) in the very language.

16 lines (11 loc) 305 B
import Node from "./Node.js"; export default class $qDownstream { type = 'BlockStatement'; $body = []; constructor( nodes ) { this.body = nodes; } get body() { return this.$body; } set body( nodes ) { this.$body = nodes; Node.withLoc( this, ...nodes ); } }