wing
wing copied to clipboard
custom class internals are not rendered correctly
I tried this:
Start with this code:
bring cloud;
class X {
b: cloud.Bucket;
new(){
this.b = new cloud.Bucket();
}
pub f(){
this.b.onEvent(inflight () => {});
}
pub inflight ff(){
this.b.put("sdads","dsadsa");
}
}
let api = new cloud.Api();
let b = new cloud.Bucket();
new cloud.Function(inflight () => {
b.put("file.txt", "dsasd" );
b.get("dsasd");
});
new cloud.Function(inflight () => {
b.put("file.txt", "dsasd" );
b.get("dsasd");
b.list();
}) as "2";
api.post("/doc/:id", inflight (req) => {
});
It should render something like this:
Now add let x = new X();
at the end of the file, it renders this:
This happened:
If I stop and start wing run
it will show a correct representation:
I expected this:
It should have generate the right structure
Is there a workaround?
No response
Anything else?
No response
Wing Version
0.73.41
Node.js Version
No response
Platform(s)
No response
Community Notes
- Please vote by adding a 👍 reaction to the issue to help us prioritize.
- If you are interested to work on this issue, please leave a comment.