Skip to content

Commit

Permalink
chore: self mutation (e2e-1of2.diff)
Browse files Browse the repository at this point in the history
Signed-off-by: monada-bot[bot] <[email protected]>
  • Loading branch information
monadabot committed Aug 30, 2024
1 parent 6e0662d commit 0f10058
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -447,19 +447,19 @@ class $Root extends $stdlib.std.Resource {
static _toInflightType() {
return `
require("${$helpers.normalPath(__dirname)}/inflight.$Closure6-5.cjs")({
$subdir_InflightClass: ${$stdlib.core.liftObject($stdlib.core.toLiftableModuleType(globalThis.$ClassFactory.resolveType("rootpkg.subdir2.InflightClass") ?? subdir.InflightClass, "", "InflightClass"))},
$subdir_InflightClass: ${$stdlib.core.liftObject($stdlib.core.toLiftableModuleType(globalThis.$ClassFactory.resolveType("examples-valid.subdir2.InflightClass") ?? subdir.InflightClass, "", "InflightClass"))},
})
`;
}
get _liftMap() {
return ({
"handle": [
[$helpers.preflightClassSingleton(this, 5), ["method"]],
[$stdlib.core.toLiftableModuleType(globalThis.$ClassFactory.resolveType("rootpkg.subdir2.InflightClass") ?? subdir.InflightClass, "", "InflightClass"), []],
[$stdlib.core.toLiftableModuleType(globalThis.$ClassFactory.resolveType("examples-valid.subdir2.InflightClass") ?? subdir.InflightClass, "", "InflightClass"), []],
],
"$inflight_init": [
[$helpers.preflightClassSingleton(this, 5), []],
[$stdlib.core.toLiftableModuleType(globalThis.$ClassFactory.resolveType("rootpkg.subdir2.InflightClass") ?? subdir.InflightClass, "", "InflightClass"), []],
[$stdlib.core.toLiftableModuleType(globalThis.$ClassFactory.resolveType("examples-valid.subdir2.InflightClass") ?? subdir.InflightClass, "", "InflightClass"), []],
],
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ class $Root extends $stdlib.std.Resource {
}
}
const bucket = globalThis.$ClassFactory.new("@winglang/sdk.cloud.Bucket", cloud.Bucket, this, "Bucket");
const b1 = globalThis.$ClassFactory.new("rootpkg.MyBucket", MyBucket, this, "b1", bucket);
const b2 = globalThis.$ClassFactory.new("rootpkg.MyBucket", MyBucket, this, "b2", bucket);
const b1 = globalThis.$ClassFactory.new("examples-valid.MyBucket", MyBucket, this, "b1", bucket);
const b2 = globalThis.$ClassFactory.new("examples-valid.MyBucket", MyBucket, this, "b2", bucket);
const api = globalThis.$ClassFactory.new("@winglang/sdk.cloud.Api", cloud.Api, this, "Api");
(api.get("/", new $Closure1(this, "$Closure1")));
globalThis.$ClassFactory.new("@winglang/sdk.std.Test", std.Test, this, "test:call endpoint", new $Closure2(this, "$Closure2"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ class LibClass extends $stdlib.std.Resource {
super($scope, $id);
}
static createFoo($scope, id) {
return globalThis.$ClassFactory.new("rootpkg.Foo", Foo, $scope, id);
return globalThis.$ClassFactory.new("examples-valid.Foo", Foo, $scope, id);
}
static _toInflightType() {
return `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class LibClass extends $stdlib.std.Resource {
super($scope, $id);
}
static createFoo($scope, id) {
return globalThis.$ClassFactory.new("rootpkg.Foo", Foo, $scope, id);
return globalThis.$ClassFactory.new("examples-valid.Foo", Foo, $scope, id);
}
static _toInflightType() {
return `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ class $Root extends $stdlib.std.Resource {
(std.Number.fromJson("cool", { unsafe: true }));
$macros.__Struct_fromJson(false, Student, ({"obviously": "not a student"}), { unsafe: true });
globalThis.$ClassFactory.new("@winglang/sdk.std.Test", std.Test, this, "test:unsafe flight", new $Closure5(this, "$Closure5"));
globalThis.$ClassFactory.new("rootpkg.subdir.UsesStructInImportedFile", otherExternalStructs.UsesStructInImportedFile, this, "UsesStructInImportedFile");
globalThis.$ClassFactory.new("examples-valid.subdir.UsesStructInImportedFile", otherExternalStructs.UsesStructInImportedFile, this, "UsesStructInImportedFile");
}
}
const $APP = $PlatformManager.createApp({ outdir: $outdir, name: "struct_from_json.test", rootConstruct: $Root, isTestEnvironment: $wing_is_test, entrypointDir: process.env['WING_SOURCE_DIR'], rootId: process.env['WING_ROOT_ID'] });
Expand Down

0 comments on commit 0f10058

Please sign in to comment.