Skip to content

Commit

Permalink
chore: self mutation
Browse files Browse the repository at this point in the history
Signed-off-by: monada-bot[bot] <[email protected]>
  • Loading branch information
monadabot committed Jul 20, 2023
1 parent 0516603 commit b6c8110
Showing 1 changed file with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ module.exports = function({ $store }) {

```

## inflight.Q.js
```js
module.exports = function({ }) {
class Q {
constructor({ }) {
}
}
return Q;
}

```

## inflight.Store.js
```js
module.exports = function({ }) {
Expand Down Expand Up @@ -323,7 +335,37 @@ class $Root extends $stdlib.std.Resource {
;
return { Store, Color };
})();
const file2 = (() => {
class Q extends $stdlib.std.Resource {
constructor(scope, id, ) {
super(scope, id);
this._addInflightOps("$inflight_init");
}
static _toInflightType(context) {
return $stdlib.core.NodeJsCode.fromInline(`
require("./inflight.Q.js")({
})
`);
}
_toInflight() {
return $stdlib.core.NodeJsCode.fromInline(`
(await (async () => {
const QClient = ${Q._toInflightType(this).text};
const client = new QClient({
});
if (client.$inflight_init) { await client.$inflight_init(); }
return client;
})())
`);
}
}
return { Q };
})();
const file3 = (() => {
return { };
})();
const store = new file1.Store(this,"file1.Store");
const q = new file2.Q(this,"file2.Q");
this.node.root.new("@winglang/sdk.std.Test",std.Test,this,"test:add data to store",new $Closure1(this,"$Closure1"));
const s = {
"x": 1,
Expand Down

0 comments on commit b6c8110

Please sign in to comment.